-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
84 lines (84 loc) · 5.01 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
sudo: required
env:
global:
- DIST_REPO="f5-openstack-lbaasv2-driver-dist"
- PKG_VERSION=$(python -c "import f5lbaasdriver; print f5lbaasdriver.__version__")
- PKG_RELEASE=$(python ${DIST_REPO}/scripts/get-version-release.py --release)
- PKG_RELEASE_EL7=${DIST_REPO}/rpms/f5-openstack-lbaasv2-driver-${PKG_VERSION}-1.el7.noarch.rpm
- PKG_RELEASE_1404=${DIST_REPO}/deb_dist/python-f5-openstack-lbaasv2-driver_${PKG_VERSION}-${PKG_RELEASE}_1404_all.deb
- RELEASE_TAG=v$(echo $PKG_VERSION | cut -d . -f 1,2)
services:
- docker
language: python
python:
- '2.7'
before_install:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis F5 Openstack"
- docker pull f5devcentral/containthedocs:latest
install:
- pip install hacking pytest coverage
- pip install -r requirements.test.txt
script:
- flake8 ./f5lbaasdriver
- coverage run --source f5lbaasdriver -m py.test f5lbaasdriver/v2/bigip/
- coverage report
- f5-openstack-lbaasv2-driver-dist/scripts/package.sh "redhat" "7"
- f5-openstack-lbaasv2-driver-dist/scripts/package.sh "ubuntu" "14.04"
- sudo chown -R travis:travis ${DIST_REPO}/rpms
- sudo chown -R travis:travis ${DIST_REPO}/deb_dist/*.deb
- ./docs/scripts/docker-docs.sh ./docs/scripts/test-docs.sh
after_success:
- md5sum ${PKG_RELEASE_EL7} > ${PKG_RELEASE_EL7}.md5 && md5sum --check ${PKG_RELEASE_EL7}.md5
- md5sum ${PKG_RELEASE_1404} > ${PKG_RELEASE_1404}.md5 && md5sum --check ${PKG_RELEASE_1404}.md5
- f5-openstack-lbaasv2-driver-dist/scripts/test_install.sh "redhat" "7"
- f5-openstack-lbaasv2-driver-dist/scripts/test_install.sh "ubuntu" "14.04"
notifications:
slack:
rooms:
- secure: soCJy2X/f/yU8qQaewN5bTAxaZi7jKUe0TtGkRVlbNXzpiX+XsocWqCPwjkwimI01mZ3n36Q/TlP6V6h4H0AzA8CN1sp0tRfIXxZgV1m4Kye1IKefFXUwXb52pFtHicu+dWdUBvJzTe1PUimt7eg1ZMOLcq8lUSVnNNFVXj5JR6DGFKss0JbtMP/nfTYxlyUvvDsKkWgBd9G+D6JrChpLrLccV8ZA4lByhMRjWxJW7f+o4gtF/FVZkGv/Pv16M5FIqWVnf9WYWnxErw0Ji3piuC+BF76nBhShQ4eCn78GOw0BvdpW4WJH859Xks31ARuX0dE1COreNS+Jgwd2TW3A/9FnsQYP3pzhaSw1qnqDhYj6+Hw2feX2/QNxrLKTKkYap30M9rHfIYI/PCVIIhbz7RVx5Dn/2ABz7YfNRYKh6CqqEq7vyNp7vTw8KrmubvTbru+9/4JPKYzuNUk1w3tJKlzTg18hUBcwewt7JhyKbJljje1atKUYupGzGeTDHubuDG/IP0BnzvKFfEoBKUZ/1jmIHkXqCcJU2qAqAltiO0oDLO8w4kDg5hYEz4FdOHYADPKJT4+pqdZafgn7xlOWVkVpbRCqHJbXCqqRwPrGw2cNeQ0+trs2W3UQRKnSOU7ZF4W6UvAizHpBW0jj7Wu8fm/B9yvDv081Fu1+girhjs=
- secure: R9I38fqG1n1dXSd97e7eKrNt8XtWPpcF7J1cZ8cc+vB3+LcHjruMTVfRZHPWsBHMlWxvgrl7zD3t+38cIW2hJ7YrWjo4Izl60k8OM6HteFwHfDGsLM6eZNUaTZFORbeTSJCo6jryAI7qsu5xjU2uUi08nJTmuXU9jxsC+7mRzh1EL680TaPtCfoniVqI+3xRWt1ApVs8u61yU44x83KlBcSHdg9F/7X3o/I9vG+CiKxm+RWi0i6g1RebLzAEnYYMTG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XrCCAxeMY1HhcVMwHCorBzYB1FQe6VI5jR/+oPhU0GQe3EttebeNIb6PjlZEYYS0j2VM6vz5foS/z0=
file:
- ${PKG_RELEASE_EL7}
- ${PKG_RELEASE_EL7}.md5
- ${PKG_RELEASE_1404}
- ${PKG_RELEASE_1404}.md5
skip_cleanup: true
overwrite: true
on:
repo: F5Networks/f5-openstack-lbaasv2-driver
tags: true
- 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
# docs on master only deploy to /products/openstack/lbaasv2-driver/master/
- provider: script
skip_cleanup: true
on:
branch: master
repo: F5Networks/f5-openstack-lbaasv2-driver
condition: $TRAVIS_TAG = ""
script:
- ./docs/scripts/deploy-docs.sh publish-product-docs-to-prod openstack/lbaasv2-driver master
# For tagged releases, the docs publish at /products/openstack/lbaasv2-driver/<branch-name>/vX.Y
# This section is commented out on the master branch because we don't need to publish tagged releases to /master
#- provider: script
# skip_cleanup: true
# on:
# tags: true
# repo: F5Networks/f5-openstack-lbaasv2-driver
# script:
# - ./docs/scripts/deploy-docs.sh publish-product-docs-to-prod openstack/lbaasv2-driver/master $RELEASE_TAG