forked from jiaozihao18/md_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (43 loc) · 1.06 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
language: python
matrix:
include:
# Extra includes for OSX since python language is not available by default on OSX
- os: osx
language: generic
env: PYTHON_VER=3.5
- os: osx
language: generic
env: PYTHON_VER=3.6
- os: linux
python: 3.5
env: PYTHON_VER=3.5
- os: linux
python: 3.6
env: PYTHON_VER=3.6
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
install:
- ./.travis/install.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- # Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$PYTHON_VER pip pytest pytest-cov
- source activate test-environment
- python setup.py install
- # Install pip only modules
- pip install codecov
script:
- # Allows matplotlib to render in all envs
- export MPLBACKEND=Agg
- pytest -v --cov=md_utils tests/
notifications:
email: false
after_success:
- codecov