forked from Marcello-Sega/pytim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (59 loc) · 1.83 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
74
75
76
77
language: python
branches:
except:
- dev
- extended_datafiles
env:
global:
- CC_TEST_REPORTER_ID=bdc5010b5f2e62769ccd2d885f0d7eb59691844de9a2018e9e3da255a37282e2
matrix:
include:
- os: linux
sudo: required
python: 2.7
env: MDAv=0.19
- os: linux
sudo: required
python: 2.7
env: MDAv=0.19.2
- os: linux
sudo: required
python: 3.6
env: MDAv=0.17
- os: linux
sudo: required
python: 3.6
env: MDAv=0.19.2
# - os: osx
# language: generic
# env: MDAv=0.16
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
brew update;
curl -s --location "https://bootstrap.pypa.io/get-pip.py" -o get-pip.py ;
python get-pip.py --user ;
alias pip='pip2'
pip install --upgrade pip ;
fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get install liblapack-dev -y ; fi
install:
- pip install codecov
- pip install pylama
- pip install pytest-cov
- pip install Sphinx>=1.4.3
- pip install matplotlib
- pip install cython
- pip install MDAnalysis==$MDAv
- pip install pandas
- pip install mdtraj
- pip install nose
- pip install .
# command to run tests
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: python setup.py test
after_script:
if ([ "$TRAVIS_OS_NAME" == "linux" ] && [ "$MDAv" == "0.19" ]) ; then
pip install codecov; pip install pytest-cov ; py.test --cov=pytim pytim/*py pytim/observables/*py pytim/datafiles/*py --doctest-modules --cov-report xml ; ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT ; codecov ; fi