forked from phys-mod/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 805 Bytes
/
.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
#dist: xenial # needed to use python 3.7
language: python
branches:
only:
- master
python:
- 3.6
install:
- pip install -r requirements.txt
- sudo apt-get install pandoc
script:
- skip # Travis requires a `script` property, but we do not need it
stages:
- build and test
- deploy
jobs:
include:
- stage: build and test # This stage builds and lints in parallel
name: Build
script: make html # build the docs
- stage: deploy
name: Deploy to GitHub Pages
if: (NOT type IN (pull_request)) AND (branch = master) # only deploy if merging on master
script: make html
deploy:
provider: pages # deploy on github pages
skip_cleanup: true
github_token: "$token" # defined via the Travis interface
local_dir: build/html