forked from bocadilloproject/bocadillo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.5 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
55
56
57
58
59
60
61
62
63
64
65
language: python
python: "3.6"
cache: pip
jobs:
include:
- stage: test
if: branch != release/docs
language: python
cache: pip
python: "3.6"
install: pip install .
script: pytest
- stage: test
if: branch != release/docs
language: python
# Python 3.7 still not available in usual distro
sudo: required
dist: xenial
python: "3.7"
install: pip install .
script: pytest
- stage: build and deploy docs
if: branch = release/docs
before_install:
- nvm install 8
- nvm use 8
install: npm install
script: npm run docs:build
deploy:
provider: pages
skip_cleanup: true
repo: bocadilloproject/bocadilloproject.github.io
github-token: $GITHUB_TOKEN
target-branch: master
local-dir: docs/.vuepress/dist
on:
branch: release/docs
- stage: deploy to test pypi
if: branch = release/test
script: skip
deploy:
- provider: pypi
distributions: "sdist bdist_wheel"
username: $TEST_PYPI_USERNAME
password: $TEST_PYPI_PASSWORD
server: https://test.pypi.org/legacy/
on:
branch: release/test
- stage: deploy to pypi
if: tag IS present
script: skip
deploy:
- provider: pypi
distributions: "sdist bdist_wheel"
username: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true