-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (42 loc) · 953 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
50
sudo: required
language: python
python:
- 2.7
- 3.5
install:
- make install_dev
cache:
- packages
- pip
script:
- echo skipping the build, will be compiled at deployment
# 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