-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
73 lines (69 loc) · 1.86 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
# will build a C++ programme
language: cpp
# define build matrix
matrix:
include:
# Ubuntu 16.04 Xenial Xerus
- os: linux
dist: xenial
sudo: required
compiler: gcc
env:
OS_DIST=LINUX_XENIAL
GMX_VERSION=2016
- os: linux
dist: xenial
sudo: required
compiler: gcc
env:
OS_DIST=LINUX_XENIAL
GMX_VERSION=2018
# Ubuntu 18.04 Bionic Beaver
- os: linux
dist: bionic
sudo: required
compiler: gcc
env:
OS_DIST=LINUX_BIONIC
GMX_VERSION=2016
- os: linux
dist: bionic
sudo: required
compiler: gcc
env:
OS_DIST=LINUX_BIONIC
GMX_VERSION=2018
allow_failures:
- GMX_VERSION=2019 # known API break
- OS_DIST=LINUX_BIONIC # new Ubuntu LTS not tested
fast_finish: true
# install dependencies
install:
# install linear algebra dependencies
- sudo apt-get install -y libblas-dev
- sudo apt-get install -y libatlas-base-dev
- sudo apt-get install -y libopenblas-dev
- sudo apt-get install -y liblapacke-dev
# install boost
- sudo apt-get install -y libboost-all-dev
# install GROMACS
- wget https://ftp.gromacs.org/pub/gromacs/gromacs-${GMX_VERSION}.tar.gz
- tar -xvzf gromacs-${GMX_VERSION}.tar.gz
- cd gromacs-${GMX_VERSION}
- mkdir build
- cd build
- cmake -DGMX_FFT_LIBRARY=fftpack ..
- make -j 2
- sudo make install
- . /usr/local/gromacs/bin/GMXRC
# prepare build process
before_script:
- mkdir ${TRAVIS_BUILD_DIR}/build
- cd ${TRAVIS_BUILD_DIR}/build
# build and test
script:
- cmake ..
- make -j 2
- make check
- sudo make install
- /usr/local/chap/bin/chap -h