-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
41 lines (33 loc) · 1.13 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
apt:
packages:
- libfftw3-dev
- libfftw3-mpi-dev
- libopenmpi-dev
- libboost-all-dev
- libjsoncpp-dev
matrix:
exclude:
- os: osx
compiler: gcc
- os: linux
compiler: clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install open-mpi ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install fftw ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install jsoncpp ;fi
install:
- export OMPI_MPICXX=$CXX
- export OMPI_CXX=$CXX
- export OMPI_MPICC=$CC
- export OMPI_CC=$CC
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir build && cd build && cmake .. -DBUILD_EXAMPLES=ON && cmake --build . --target install ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir build && cd build && cmake .. && cmake --build . --target install ;fi