-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.86 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
dist: xenial
language: python
python:
- '3.7'
- '2.7'
env:
- HVAC_VAULT_VERSION=1.1.3 HVAC_VAULT_LICENSE=enterprise
- HVAC_VAULT_VERSION=1.0.3 HVAC_VAULT_LICENSE=enterprise
- HVAC_VAULT_VERSION=0.11.0 HVAC_VAULT_LICENSE=enterprise # This ver kept explicitly; it has subsequently reverted backwards-incompatible changes.
- HVAC_VAULT_VERSION=STABLE HVAC_VAULT_LICENSE=OSS
- TOXENV=flake8
matrix:
include:
- name: 'Vault OSS - Latest hvac-tested Release on Python 3.7'
python: '3.7'
env: HVAC_VAULT_VERSION=1.1.3 HVAC_VAULT_LICENSE=OSS
- name: 'Test Documentation Build - Sphinx: "make html"'
env: TOXENV=docs
- stage: PyPi Release
name: 'Publish to PyPI During Git "tag" Builds'
install: skip
script: skip
before_deploy:
- make package
deploy:
provider: pypi
user: hvac-bot
password:
secure: s9LLuUp1+ZTE3xvXdW9tF9hPUk7jxsFvol3PouDXdSVBNeVUhyHG1fMxOi1p8UOhx7e/iOGv8Bi77z0gDQgcynrFywhHEGbuna92Am40wMFT/Lu+JzHi8y2zBdahNsi80FnlNhW3MEtCNkXI6HgIlBpzEcfSm0ovfuncT0+5fCI=
distributions: "sdist bdist_wheel"
skip_cleanup: true
on:
tags: true
allow_failures:
# Ignore failed tests run against Vault development builds compiled from https://github.com/hashicorp/vault.
- env: HVAC_VAULT_VERSION=STABLE HVAC_VAULT_LICENSE=OSS
# Don't wait on the "allow_failures" build jobs before reporting on the overall success/failure of the current build.
fast_finish: true
install:
- tests/scripts/install-consul.sh
- tests/scripts/install-vault.sh ${HVAC_VAULT_VERSION} ${HVAC_VAULT_LICENSE}
- pip install tox-travis
script:
- make test
notifications:
webhooks:
secure: "IuHvo7I77oZKo++O9QSq1TOtYOvZnqSTg7uO1lr7/+6fMsFLZE4YQVVqa3qyJwn5Q2DafAIdzVj5OyWT9FK8hDTAhqkDL4iVnh+Bk+ph1WBYA0OzFv32K0M46byUwTMmeq51DIuTozhJ/v58pYk6d95MJT9J5/cXCeGmr2vAUqo="