forked from networkx/grave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (62 loc) · 1.4 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
# After changing this file, check it on:
# http://lint.travis-ci.org/
#
sudo: false
language: python
cache:
directories:
- $HOME/.cache/pip
matrix:
include:
- os: linux
python: 3.6
env:
- REPORT_COVERAGE=1
- BUILD_DOCS=1
- DEPLOY_DOCS=1
addons:
apt:
packages:
- texlive
- texlive-latex-extra
- latexmk
- os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.6
- python: 3.4
- python: 3.5
- python: 3.6
before_install:
# prepare the system to install prerequisites or dependencies
- source tools/travis/before_install.sh
- uname -a
- printenv
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
source tools/travis/osx_install.sh;
else
source tools/travis/linux_install.sh;
fi
install:
# install required packages
- pip install --upgrade pip
- pip install --retries 3 ${PIP_FLAGS} -r requirements.txt
# install grave
- printenv PWD
- pip install .
# show what's installed
- python --version
- pip list
script:
- if [[ "${BUILD_DOCS}" == 1 ]]; then
source tools/travis/build_docs.sh;
fi
- source tools/travis/script.sh
after_success:
- if [[ "${REPORT_COVERAGE}" == 1 ]]; then
codecov;
fi
- if [[ "${BUILD_DOCS}" == 1 && "${DEPLOY_DOCS}" == 1 ]]; then
source tools/travis/deploy_docs.sh;
fi
notifications:
email: false