-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
68 lines (57 loc) · 1.61 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
# Lets run on the new infrastructure
# sudo: false
# dist: trusty
# lets run on the old
# sudo: required
dist: trusty
group: deprecated-2017Q4
language: python
python:
- "3.6"
install:
- pip install tox pipenv==2018.7.1
before_script:
- wget http://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
- mkdir chromedriver
- unzip chromedriver_linux64.zip -d chromedriver
- export PATH=$PATH:$PWD/chromedriver
- google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
- printf "machine github.com\nlogin legostormtroopr\npassword ${GITHUB_TOKEN}" > ~/.netrc
addons:
chrome: stable
script:
- ./scripts/prepare_server.sh
- ./scripts/start_server.sh
- cp builder.env .env
- pipenv install .
- pipenv run sphinx-build -aE -b html docs/ docs/_build/html/
# - tox -e docs-strict
# - tox -e docs-text-index
# - cp -r docs/_build/text/* docs/_build/html/_sources
after_script:
- ./scripts/teardown_server.sh
after_failure:
- cat server.log
deploy:
- provider: pages
local_dir: docs/_build/html
repo: aristotle-mdr/published-documentation
target-branch: draft
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: draft
- provider: pages
local_dir: docs/_build/html
repo: aristotle-mdr/published-documentation
target-branch: published
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: publish
# addons:
# apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable