-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.travis.yml
99 lines (87 loc) · 2.64 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
95
96
97
98
language: python
dist: bionic
sudo: true
matrix:
fast_finish: true
include:
- os: osx
osx_image: xcode10.1
env: COMP_EVAL="OS=osx && COMP_CC=gcc-9 && COMP_CXX=g++-9"
language: generic
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libhdf5-serial-dev
- hdf5-helpers
- openmpi-bin
- libopenmpi-dev
- libblas-dev
- liblapack-dev
env: COMP_EVAL="OS=linux && COMP_CC=gcc-7 && COMP_CXX=g++-7"
python: 3.8
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- libhdf5-serial-dev
- hdf5-helpers
- openmpi-bin
- libopenmpi-dev
- libblas-dev
- liblapack-dev
env: COMP_EVAL="OS=linux && COMP_CC=clang-5.0 && COMP_CXX=clang++-5.0"
python: 3.8
allow_failures:
- env: COMP_EVAL="OS=linux && COMP_CC=gcc-7 && COMP_CXX=g++-7"
#- env: COMP_EVAL="OS=linux && COMP_CC=clang-5.0 && COMP_CXX=clang++-5.0"
addons:
apt:
update: true
homebrew:
update: false
cache:
apt: true
before_install:
- eval "${COMP_EVAL}"
#pre-install mpi
- export CXX=${COMP_CXX}
- export CC=${COMP_CC}
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install open-mpi fftw fmt; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y libopenmpi-dev libhdf5-serial-dev hdf5-helpers openmpi-bin libblas-dev liblapack-dev; fi
- export MPI="openmpi40"
- export CC=mpicc
- export CXX=mpic++
#test mpi compiler wrappers
- $CC --version
- $CXX --version
- echo $CXX
- mpicc --version
- mpic++ --version
#- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC=mpicc; fi
#- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=mpic++; fi
before_script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CC=${COMP_CC}; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CXX=${COMP_CXX}; fi
#install python requirements
- pip3 uninstall numpy -y
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then pip3 install --user -r requirements.txt; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then pip3 install -r requirements.txt; fi
#configure hdf5 (for linux)
- if [ "$TRAVIS_OS_NAME" = "linux"]; then export HDF5_INCLUDE_PATH=/usr/include/hdf5/serial; fi
#configure runko env variables
- export RUNKO=$(pwd)
- export PYTHONPATH=$PYTHONPATH:$RUNKO
- export PYTHONPATH=$PYTHONPATH:$RUNKO/lib
- export PYTHONPATH=$PYTHONPATH:$RUNKO/corgi/lib
- export PYTHONPATH=$PYTHONPATH:$RUNKO/bindings/old
- echo $PYTHONPATH
script:
- mkdir build && cd build
- cmake ..
- make