forked from plumed-nest/plumed-nest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (37 loc) · 1.42 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
dist: xenial
sudo: required
language: cpp
cache:
- ccache
- pip
- directories:
- $HOME/opt
install:
- sudo apt update
- sudo apt install mpi-default-bin mpi-default-dev
- sudo apt install libfftw3-dev gsl-bin libgsl0-dev libboost-serialization-dev
- sudo apt-get update
- pyenv global 3.7
- pip3 install PyYAML pytz
- git clone --bare https://github.com/plumed/plumed2.git
- export PATH="$HOME/opt/bin:$PATH"
- export LD_LIBRARY_PATH="$HOME/opt/lib:$LD_LIBRARY_PATH"
- export LIBRARY_PATH="$HOME/opt/lib:$LIBRARY_PATH"
- export CPATH="$HOME/opt/include:$CPATH"
# needed to avoid MPI warning
- export OMPI_MCA_btl="^openib"
- sudo ln -s ccache /usr/local/bin/mpic++
- export PATH=/usr/lib/ccache:${PATH}
- ccache -s
- .travis/install.xdrfile
# version=master or version=f123f12f3 to select a specific version
# pick newest release branch (alphabetic, will fail at v2.10)
- CXX="mpic++" .travis/install.plumed version="$(cd plumed2.git ; git branch | sed "s/^ *//" | grep '^v2\.[0-9]$' | tail -n 1)" repo=$PWD/plumed2.git
# GB: in addition, we install master version as plumed_master
- CXX="mpic++" .travis/install.plumed version=master suffix=_master repo=$PWD/plumed2.git
- ccache -s
script:
- python3 --version
- python3 nest.py
after_success:
- bash .travis/push $(find . -name "*.md") $(find . -name "*.stdout.txt.zip") $(find . -name "*badge.svg") _config.yml _layouts _data assets _sass