-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (28 loc) · 797 Bytes
/
.travis.yml
File metadata and controls
28 lines (28 loc) · 797 Bytes
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
dist: xenial # needed to use python 3.7
language: python
branches:
only:
- master
python:
- 3.7
install:
- pip install -r ./docsrc/requirements.txt
- pip install -U pip
- pip install pipenv
- pipenv install # set up the environment
- export PATH="./bin:$PATH"
script:
- skip # Travis requires a `script` property, but we do not need it
stages:
- deploy
jobs:
include:
- stage: deploy
name: Deploy to GitHub Pages
if: (NOT type IN (pull_request)) AND (branch = master) # only deploy if merging on master
script: pipenv run make html
deploy:
provider: pages # deploy on github pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN_FOR_OPRECMOP_kwpilot_doc" # defined via the Travis interface
local_dir: _build/html