-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (41 loc) · 1.29 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
sudo: false
# dist: trusty
language: python
python:
- 3.6
- 3.7
- 3.8
branches:
only:
- master
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH
install:
- conda config --set always_yes true
- conda update conda
- conda create -n testenv pip nose python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas
# - conda install --yes --file requirements.conda
- source activate testenv
- pip install -U pytest
- pip install pytest-cov
- pip install codecov
- pip install periodictable
- pip install plotly
- python setup.py install
script:
- pytest -v --cov=tests/
after_success:
- codecov
notifications:
email:
on_success: change
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/6b9d6dacd08d3e45e1b3
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always