forked from mlund/faunus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (42 loc) · 1.01 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
language: cpp
dist: bionic
sudo: required
group: edge
compiler: clang
python:
- "3.7"
addons:
homebrew:
packages:
- sdl2
- open-mpi
update: true
apt:
packages:
- python-ruamel.yaml
- libsdl2-dev
- mpich
- libmpich-dev
matrix:
include:
- os: linux
compiler: clang
- os: linux
compiler: gcc
- os: osx
osx_image: xcode11.2
compiler: clang
script:
- |
cmake . -DENABLE_OPENMP=off -DCMAKE_BUILD_TYPE=Debug
make faunus || travis_terminate 1
./faunus --version || travis_terminate 1
make pyfaunus || travis_terminate 1
make unittests || travis_terminate 1
ctest --output-on-failure -R unittests || travis_terminate 1
if [[ "$TRAVIS_COMPILER" == "clang" ]]; then
# check with SID and MPI enabled
cmake . -DENABLE_OPENMP=off -DCMAKE_BUILD_TYPE=Debug -DENABLE_SID=on -DENABLE_MPI=on
make faunus || travis_terminate 1
./faunus --version || travis_terminate 1
fi