-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
43 lines (41 loc) · 1.18 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
# Travis CI Configuration file
# @link https://travis-ci.org/
# Using Python for the project
language: python
python:
- "3.4"
- "3.5"
# Python 3.6 is set to test and deploy the docs in the configuration matrix
#- "3.6"
# PyPy currently is not working with the required dependencies
#- "pypy"
#- "pypy3"
env:
- TEST_DOCS=true
matrix:
include:
# Tests and deploys docs, also runs coverage report
- python: "3.6"
env: TEST_DOCS=true DEPLOY_DOCS=true
before_install:
# Gets scripts
- git clone -b v0.4.1 --single-branch https://github.com/Bernardo-MG/ci-shell-scripts.git ~/.scripts
# Sets scripts as executable
- chmod -R +x ~/.scripts/*
# Prepares CI environment
- source ~/.scripts/travis/load-travis-environment.sh
install:
# tox is required for the tests
- pip install tox
# sphinx is required for the docs
- pip install sphinx
# Dependencies
- pip install --upgrade -r requirements.txt
script:
# Tests are run
- ~/.scripts/python/run_tests.sh true $PYTHON_VERSION_TEST
# Documentation tests are run
- ~/.scripts/python/run_tests.sh $DO_TEST_DOCS docs
after_success:
# Documentation deployment
- ~/.scripts/rtd/deploy.sh $DO_DEPLOY_DOCS cwr