forked from F5Networks/f5-openstack-heat-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 3.24 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
sudo: required
language: python
python:
- "2.7"
services:
- docker
env:
- PYTHONPATH=~/heat:/home/travis/f5-common-python:$PWD
before_install:
- docker pull f5devcentral/containthedocs
- sudo apt-get -qq update
- git config --global user.email "[email protected]"
- git config --global user.name "Travis F5 Openstack"
- sudo apt-get -y install build-essential libssl-dev libffi-dev python-dev
- git clone -b stable/newton https://github.com/openstack/heat.git ~/heat
install:
- pip install -r requirements.unit.test.txt
- pip install -r ~/heat/requirements.txt
script:
- flake8 f5_heat/resources/
- py.test f5_heat/resources/test --cov=f5_heat/resources
- python setup.py sdist
- ./docs/doc_scripts/docker-docs.sh ./docs/doc_scripts/test-docs.sh
deploy:
- provider: pypi
user: $PYPI_USER
password: $PYPI_PASSWORD
server: https://pypi.python.org/pypi
on:
all_branches: true
tags: true
python: 2.7
skip_cleanup: true
# deploy docs to s3
# if this is not a tagged release, the docs will deploy to /products/openstack/heat-plugins/$TRAVIS_BRANCH
- provider: script
skip_cleanup: true
on:
repo: F5Networks/f5-openstack-heat-plugins
branch: master
condition: $TRAVIS_TAG = ""
script:
- ./docs/doc_scripts/deploy-docs.sh publish-product-docs-to-prod openstack/heat-plugins $TRAVIS_BRANCH
# if this is a tagged release, the docs go to /products/openstack/heat-plugins/$TRAVIS_BRANCH/vX.Y
- provider: script
skip_cleanup: true
env:
- RELEASE_TAG="$(echo $TRAVIS_TAG |cut -c1-4)"
on:
tags: true
repo: F5Networks/f5-openstack-heat-plugins
script:
- ./scripts/deploy-docs.sh publish-product-docs-to-prod openstack/heat-plugins/$TRAVIS_BRANCH $RELEASE_TAG
notifications:
slack:
roo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