forked from microsoft/Qcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (46 loc) · 1.21 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
language: python
notifications:
email: false
# send all notifcations to slack
slack: qcodes:tNlhSminOHdt2fZf6x6hyT24
cache: pip
addons:
apt_packages:
- pandoc
python:
- "3.6"
# whitelist
branches:
only:
- master
# command to install dependencies
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install -r test_requirements.txt --upgrade --upgrade-strategy only-if-needed
- pip install -r docs_requirements.txt
- pip install -e .
before_script: # configure a headless display to test plot generation
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- cd qcodes
- py.test --cov=qcodes --cov-report xml --cov-config=.coveragerc
# build docs with warnings as errors
- |
cd ..
mypy qcodes
- |
cd docs
make SPHINXOPTS="-W" html-api
- cd ..
after_success:
# upload code coverage
- python-codacy-coverage -r qcodes/coverage.xml
- codecov
# upload the docs
- |
if [[ $TRAVIS_REPO_SLUG == "QCoDeS/Qcodes" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
make -f docs/Makefile gh-pages
fi