-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
38 lines (32 loc) · 1.08 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
language: cpp
compiler:
- gcc
- clang
sudo: false
addons:
apt:
sources:
- llvm-toolchain-precise
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- clang-3.8
- libblas-dev
- liblapack-dev
- gromacs-dev
- openmpi-bin
- libopenmpi-dev
before_install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
script:
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/ProtoMol -DBUILD_LAPACK_TYPE=lapack -DBUILD_GROMACS=ON -DBUILD_PARALLEL=ON -DCODE_COVERAGE=ON
- cmake -DMPI_C_LINK_FLAGS="" -DMPI_CXX_LINK_FLAGS=""
- make
- make install
- cd test
- cp $HOME/ProtoMol/bin/ProtoMol .
- python test.py --serial --parallel --errorfailure
after_success:
- if [ "$CXX" = "g++-4.8" ]; then bash <(curl -s https://raw.githubusercontent.com/Omegaice/codecov-bash/travis_ci_fix/codecov) -x /usr/bin/gcov-4.8; fi
- if [ "$CXX" = "clang++-3.8" ]; then bash <(curl -s https://raw.githubusercontent.com/Omegaice/codecov-bash/travis_ci_fix/codecov); fi