forked from writethedocs/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (37 loc) · 1.08 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
language: python
python:
- 3.6
before_install:
- export GOPATH=$HOME/golang
- export PATH=$PATH:$GOPATH/bin
- export BUILD_VIDEOS=True
install:
- pip install tox-travis
- eval "$(gimme 1.8)"
- go get github.com/errata-ai/vale
- sudo apt-get install libcurl3-dev
# Safelist all Greenkeeper.io branches https://greenkeeper.io/faq.html
branches:
only:
- master
- /^greenkeeper.*$/
script:
- tox
env:
- TEST="lint"
- TEST="docs"
- TEST="yaml"
- TEST="links"
- TEST="all_links"
matrix:
allow_failures:
- env: TEST="all_links"
fast_finish: true
# An attempt to explain my understanding of the rather odd convergence of Travis CI and tox with tox-travis
# The TEST envvironment variables are way to get Travis CI to run the four tox builds in parallel
# Then in tox.ini one has to
# * list the 4 envs so tox knows what it is [envlist]
# * list them again for building with python 3.6 [travis
# * list them again against the evnironment variables to trick the matrix into existance [travis:env]
# Finally, define each env as [envlist]
# There is probably a simpler way. I hope.