Skip to content

Commit 2f66ae8

Browse files
committed
Travis now tries to compile the MPI version
1 parent 7ca6547 commit 2f66ae8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.travis.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@ matrix:
6868
- vim-common
6969
env:
7070
- MATRIX_EVAL="CC=gcc-8;CXX=g++-8"
71+
- os: linux
72+
dist: trusty
73+
sudo: false
74+
addons:
75+
apt:
76+
sources:
77+
- ubuntu-toolchain-r-test
78+
packages:
79+
- cmake
80+
- ninja-build
81+
- gcc-8
82+
- g++-8
83+
- zlib1g-dev
84+
- libbz2-dev
85+
- vim-common
86+
- libopenmpi-dev
87+
env:
88+
- MATRIX_EVAL="CC=gcc-8;CXX=g++-8;MPI=1"
7189
- os: osx
7290
osx_image: xcode10.1
7391
addons:
@@ -86,7 +104,8 @@ before_install:
86104
- eval "${MATRIX_EVAL}"
87105

88106
script:
89-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir build; cd build; cmake -G Ninja -DHAVE_SSE4_1=1 ..; ninja || exit 1; cd ..; fi
107+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -n "$MPI" ]]; then mkdir build; cd build; cmake -G Ninja -DHAVE_MPI=1 -DHAVE_SSE4_1=1 .. || exit 1; ninja || exit 1; cd ..; fi
108+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -z "$MPI" ]]; then mkdir build; cd build; cmake -G Ninja -DHAVE_MPI=0 -DHAVE_SSE4_1=1 .. || exit 1; ninja || exit 1; cd ..; fi
90109
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./util/build_osx.sh . build || exit 1; fi
91110

92111
after_success:

0 commit comments

Comments
 (0)