-
Notifications
You must be signed in to change notification settings - Fork 72
/
.travis.yml
45 lines (40 loc) · 978 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: python
python:
- "2.7"
- "3.6"
- "3.7"
install:
- pip install -r dev-requirements.txt
script:
- py.test --cov=. ./tests/
after_success:
- coverage report
- coveralls
jobs:
include:
- stage: deploy
if: branch = master AND (NOT type IN (pull_request))
before_install:
- nvm install lts/* --latest-npm
python:
- "3.7"
install:
- pip install -r dev-requirements.txt
- npm install @semantic-release/exec
script:
- git config --global user.email "[email protected]"
- git config --global user.name "ladybugbot"
- npx semantic-release
- stage: docs
if: branch = master AND (NOT type IN (pull_request))
script:
- sphinx-apidoc -f -e -d 4 -o ./docs ./butterfly
- sphinx-build -b html ./docs ./docs/_build/docs
deploy:
provider: pages
skip_cleanup: true
github-token: $GH_TOKEN
keep-history: false
local_dir: docs/_build/
on:
branch: master