forked from AdriaanRol/AutoDepGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (45 loc) · 1.67 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
language: python
notifications:
email: false
cache: pip
python:
- "3.6"
env:
- TRAVISCI=true PYTHON=3.6
services:
- xvfb
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
# command to install dependencies
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda update conda --yes
- conda create -n test_env python=${PYTHON} --yes
- source activate test_env
- conda install numpy scipy pyopengl pytest flake8 six coverage --yes
- conda install -c bioconda pygraphviz --yes
- echo ${QT}
- echo ${TEST}
- echo ${PYTHON}
- conda install pyqt --yes;
- pip install --upgrade pip
# Have to be selective about how packages get installed due to strange error on Travis
# - pip install -r requirements.txt
- pip install qcodes PyYAML networkx matplotlib pyqtgraph jsonschema
- pip install coverage pytest-cov pytest --upgrade
- pip install coveralls
- pip install codacy-coverage
- pip install -e .
# command to run tests
script:
- py.test --cov=autodepgraph --cov-report xml --cov-config=.coveragerc
after_success:
# install codacy coverage plugin and sphinx only on traivs
- pip install codacy-coverage sphinx sphinx_rtd_theme jsonschema sphinxcontrib-jsonschema
- python-codacy-coverage -r coverage.xml
- coveralls
# build the docs
# - make -f docs/Makefile gh-pages