forked from iTaybb/pySmartDL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (50 loc) · 1.27 KB
/
.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
51
52
53
54
language: python
TestingStage: &testingStage
stage: test
dist: xenial
install:
- pip install -r test_requirements.txt
script:
- python setup.py install
- py.test --cov-report term --cov=pySmartDL -v
- codecov
after_failure:
- dmesg | tail -n 100
jobs:
include:
- <<: *testingStage
python: 3.4
- <<: *testingStage
python: 3.5
- <<: *testingStage
python: 3.6
- <<: *testingStage
python: 3.7
- stage: Deploy
if: tag =~ /^v
dist: trusty
python: 3.6
skip-cleanup: true
install:
- pip install -r build_requirements.txt
script:
- cd docs
- make html
- touch _build/html/.nojekyll # for github pages
- cd .. # return to root folder
deploy:
- provider: pages
local-dir: docs/_build/html
target-branch: gh-pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
on:
all_branches: true # actually based on the tag
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
skip_existing: true
skip-cleanup: true
distributions: "sdist bdist_wheel"
on:
all_branches: true # actually based on a -live tag