-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
94 lines (81 loc) · 2.33 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# http://travis-ci.org/Crompulence/CPL_APP_LAMMPS-DEV
os: linux
sudo: required
language: python
python:
- 2.7
# set up build matrix
matrix:
include:
#Build for 14.04
- dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6 gcc-6 libstdc++-6-dev gfortran-6
# change default compiler to newer gcc-6
env:
- GCC_VERSION=6
- CXX_COMPILER=g++-6
- C_COMPILER=gcc-6
- F_COMPILER=gfortran-6
- MPI=mpich3
branches:
only:
- master
cache:
apt: true
directories:
- mpi
virtualenv:
system_site_packages: true
before_install:
#Needed steps to get out opf virtualenv and get Scipy working
- SITE_PKG_DIR=$VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/site-packages
- rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt
#Get git and download CPL library, building mpi first then CPL
- sudo apt-get install git-core
- git clone https://github.com/Crompulence/cpl-library.git ./cpl
- cd ./cpl
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- export MPI_BUILD_DIR=$TRAVIS_BUILD_DIR/mpi
- export MPI_DIR=$MPI_BUILD_DIR/$MPI
- sh ./make/travis/travis-install-mpi.sh $MPI $MPI_BUILD_DIR $GCC_VERSION
- sh ./make/travis/travis-install-mpi4py.sh $MPI_DIR
- export PATH=$MPI_DIR/bin:$PATH
- make PLATFORM=gcc
- export CPL_PATH=`pwd`
- source $CPL_PATH/SOURCEME.sh
- cd ../
install:
#Download CPL APP for LAMMPS and add package USER-CPL
- LAMMPS_APP_DIR=./CPL_APP_LAMMPS-DEV
- git clone https://github.com/Crompulence/CPL_APP_LAMMPS-DEV.git $LAMMPS_APP_DIR
- sh $LAMMPS_APP_DIR/make/travis/travis-install-lammps.sh lammps
#Build version of LAMMPS
- cd gitlammps
- pwd > ../$LAMMPS_APP_DIR/CODE_INST_DIR
- cd ../$LAMMPS_APP_DIR
- echo granular >> config/lammps_packages.in
- cd config
- sh ./enable-packages.sh make
- cd ../
- make patch-lammps
- make -j 8
- source SOURCEME.sh
before_script:
- sudo apt-get install python-numpy
- sudo apt-get install python-scipy
script:
- make test-single
- make test-simwrap
- make test-couette
- make test-granular
after_success:
- echo "Build Success"
notifications:
email: true