forked from sky-uk/mite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (33 loc) · 677 Bytes
/
.travis.yml
File metadata and controls
37 lines (33 loc) · 677 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
29
30
31
32
33
34
35
36
37
language: python
cache: pip
python:
- "3.7"
stages:
- pre-check
- test
- name: docs
if: branch = master
- name: deploy
if: branch = master
jobs:
include:
- stage: pre-check
name: Check the format of files in the repo
script: pre-commit run --all-files
- stage: test
name: Unit tests
script: pytest
python:
- "3.7"
- "3.8"
- stage: docs
name: Build docs
script: cd docs; make html
install:
- pip install -r requirements.txt -r test-requirements.txt
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: docs/_build