forked from powerfulseal/powerfulseal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (43 loc) · 878 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
language: python
python:
- "2.7"
- "3.6"
# - "3.7"
# enable docker in Travis
services:
- docker
branches:
only:
- master
- /^\d+\.\d+\.\d+(-\S*)?$/
# install pandoc
before_install:
- sudo apt-get install pandoc
# command to install dependencies
install:
- pip install tox-travis
# command to run tests
script:
- tox
- docker --version
- make build
- docker images
- docker run `make version` --help
- pandoc -s README.md -t rst -o README.md
# push images to DockerHub and PyPI on tags
deploy:
- provider: script
script: bash docker_deploy.sh
skip_cleanup: true
on:
tags: true
python: "3.6"
condition: -n "$DOCKER_PASSWORD"
- provider: pypi
user: "$PYPI_USER"
password: "$PYPI_PASSWORD"
skip_cleanup: true
on:
tags: true
python: "3.6"
condition: -n "$PYPI_PASSWORD"