-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 906 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
46
47
48
49
sudo: false
language: python
python:
- 2.7
- 3.5
cache:
- pip
install:
- pip install -r requirements.txt
script:
- make test
# jobs instead of deploy to deploy only once (for Python3 build)
jobs:
fast_finish: true
include:
- stage: upload to PYPI, build docs and create a release
# python-semantic-release fails with Travis Python3.5
python: 2.7
install: make install_dev
script: make html
deploy:
- provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: true
on:
branch: master
local-dir: docs/build/html
- provider: script
skip_cleanup: true
on:
branch: master
script: make publish
- provider: releases
skip-cleanup: true
api_key: $GH_TOKEN
on:
tags: true
file: dist/*
after_failure:
- pip freeze