forked from Amber-MD/pytraj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (58 loc) · 1.37 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
language: cpp
matrix:
include:
- { os: linux, env: PYTHON_VERSION=3.6 }
- { os: linux, env: PYTHON_VERSION=3.7 }
- { os: linux, env: PYTHON_VERSION=3.8 }
- { os: linux, env: PYTHON_VERSION=3.8 USE_OPENMP=false}
# - { os: osx, env: PYTHON_VERSION=3.7 }
sudo: false
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew tap homebrew/science;
brew install netcdf fftw;
shell_session_update() { echo "Overriding shell_session_update"; };
sudo bash devtools/ci/install_gfortran.sh;
fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- gfortran-6
- gfortran
- clang
- libz-dev
- libbz2-dev
- libblas-dev
- liblapack-dev
- libarpack2-dev
- libnetcdf-dev
- openmpi-bin
- openmpi-common
- libopenmpi-dev
install:
- source devtools/ci/setup_env.sh
- source devtools/ci/install_test.sh
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
unset CC CXX;
sw_vers;
else
export CXX=g++-6;
export CC=gcc-6;
fi
- source devtools/travis-ci/install_pytraj.sh
- source devtools/ci/run_tests.sh
after_success:
- echo "after_success"
- cd tests/
- ../devtools/ci/coveralls
notifications:
email:
recipients:
- nhai.qn@gmail.com
on_success: never
on_failure: always