-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.travis.yml
49 lines (40 loc) · 1.79 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
language: python
python:
- "2.7"
- "3.6"
install:
- pip install -e .[test]
services:
- docker
before_install:
- sudo rm -f /etc/boto.cfg # Workaround for travis boto issue with GCE
- python -m pip install --upgrade pip
# easy_install instead of pip because of a problem with travis' virtualenv
# https://stackoverflow.com/q/35780537/3817588
- if [[ "${TRAVIS_PYTHON_VERSION}" = "2.7" ]]; then easy_install distribute; fi
script:
- invoke check
cache: pip
sudo: required
before_deploy:
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- curl -sL "https://deb.nodesource.com/setup_8.x" | sudo bash -
- sudo apt-get install -y nodejs
- sudo npm install --global [email protected]
deploy:
- provider: script
script: invoke sdist --version=${TRAVIS_TAG} publish-pypi docs --version=${TRAVIS_TAG} publish-docs publish-docker --version=${TRAVIS_TAG}
on:
tags: true
python: "3.6"
env:
global:
# TWINE_USERNAME
- secure: "UDqGCBOaIluq9GLxjGNMqNsYmgLl8tgBaA48aZFVvo1A+OOftAKz4SxcrxX5T6RQk/tyjGmYmsqp29Omfwbs0+HB8ybQa5+Y+yK2zUGq9qlyqQjl4DxLGIoK09yvRizmN4DVjGiiCWuGfLDissztrAs62t0vL4saRXXTItQIy5c="
# TWINE_PASSWORD
- secure: "dZOP0zC5NYi18ti2cWmlWY9+Yd7pNM1oyFKAXpCCPXEN8qWip0Poz3OTYrSwLMqjjuA+CIr9k4yRewEtd7jS+xjO9pMwGka5vAhi/Rop588vh5SU+e/h7I05b03Tq77F6KE6dGQ4m4HV29eC+0L5FhKFb0HiFEBfFgyPyU5tFp4="
# GITHUB_TOKEN
- secure: "T6jNcZb+c/J5fhTFCiBo/19APZ3MiI6kQXhPPdA+DAOro2GBRb11mli01cm8CDwJi/uxfDpzo0m3S66vAgLsRR1t9hy2m2773Wc3D05SUjlygHBURKy1MKpkrfypcsmZ28VjJSZBlB2b5VkovvlGcXCCpE2NSwyh0/OioeAWZw0="
# DOCKER_PASSWORD
- secure: "W7broJUfYEIDqwekNHq+MbF/LlFT80tU+bc9jUs2gcTaRDum5gGpfqIqxNPRlXGB7G1apWq0cG8UteZ+uCYz25gsbcxWKh+mrdU7TThggrB/S/3kFJrYz9uqrspXR6TaiZG1d3Eeo+hOdByk2hPTKcM3IpfSazhcVycXbMc3rAM="