forked from F5Networks/f5-openstack-agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·64 lines (61 loc) · 2.74 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
sudo: true
env:
global:
- DIST_REPO="f5-openstack-agent-dist"
- PKG_VERSION=$(python -c "import f5_openstack_agent; print f5_openstack_agent.__version__")
- PKG_RELEASE=$(python ${DIST_REPO}/scripts/get-version-release.py --release)
- PKG_RELEASE_EL7=${DIST_REPO}/rpms/build/f5-openstack-agent-${PKG_VERSION}-${PKG_RELEASE}.el7.noarch.rpm
- PKG_RELEASE_1404=${DIST_REPO}/deb_dist/python-f5-openstack-agent_${PKG_VERSION}-${PKG_RELEASE}_1404_all.deb
services:
- docker
language: python
python:
- '2.7'
before_install:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis F5 Openstack"
install:
- pip install tox
script:
- tox -e style,unit
- f5-openstack-agent-dist/scripts/package_agent.sh "redhat" "7"
- f5-openstack-agent-dist/scripts/package_agent.sh "redhat" "6"
- f5-openstack-agent-dist/scripts/package_agent.sh "ubuntu" "14.04"
- sudo chown -R travis:travis ${DIST_REPO}/rpms/build
- sudo chown -R travis:travis ${DIST_REPO}/deb_dist/*.deb
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-agent-dist/scripts/test_install.sh "redhat" "7"
- f5-openstack-agent-dist/scripts/test_install.sh "ubuntu" "14.04"
deploy:
- provider: releases
api_key:
secure: lTash9wrbwY5rsdl+ZfhYZ+Iqt2EdvZNqrq6FlLT6L4Wc4/RYCDLFwY2qrDb/n1XI3g/XhOCTyYMCu9URrw0HAY45HcAgOcEABNcAGfs/aBk5uB+l/V/42QKB+oAR9RR9qves5PJGBpJcBym9oswcxblBo8L6Z2o/yFzyGo3tHKVopTZoIw+hPqt5eAClPz8FX0ZIUZqH1iUiqMj1JJWvO9DRWECcjt4pr5HuY3u32qocQP4DUY1WQwI/R6iye5VPTAbWnsIBChJcJF1HAbsVa5IhQHhSo03RCJwZay/NF0btc9dKvIyrwqhQIUZX/RcDPvbs7TP02zg9O27HBAts2ivVRoBulN9dsHGiWGXMMQjavZGsdZ/TddKQxUvWoUKv+nHQyWGbyrE4smDHrex29NR/WgB/kHSAkNyUU1rZs8ALaoab5LY3Z0WmrFlHFs4HDb4YG+//0ODVppRe+Z8uFFnSsN4fjG9Xok+Tl+Gb9XM6/LNu+C+5DCG2VfPCnp2UGzmmo9Hm6ODhWauCR9DfJk1dUTVYb871I3ina0rwm2NQ04bKv0UHGZ2FWpq/KGx+jvXW8F54cWIluU/ze2MrJF/z9uKyTluEbDNBEr9/LaZoG22MBzHZB4xK0cEy+CSwGdOredCDCyEM7dsLlnE8ruiujbCAMvdjsHH4bu4MjU=
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-agent
tags: true
- provider: pypi
user: $PYPI_USER
password: $PYPI_PASSWORD
distributions: "sdist bdist"
server: https://pypi.python.org/pypi
on:
all_branches: true
tags: true
python: 2.7
skip_cleanup: true
notifications:
slack:
rooms:
- f5openstackdev:$SLACK_TOKEN#f5-openstack-agent
- f5openstackdev:$SLACK_TOKEN#build_status
on_success: change
on_failure: always