-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
56 lines (56 loc) · 2.33 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
sudo: true
env:
global:
- DIST_REPO="f5-icontrol-rest-dist"
services:
- docker
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27-unit
- python: 3.4
env: TOXENV=py34-unit
- python: 3.5
env: TOXENV=py35-unit
- env: TOXENV=flake
before_install:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis F5 Openstack"
install:
- pip install -r requirements.test.txt
- pip install -r requirements.docs.txt
script:
- tox
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then ${DIST_REPO}/scripts/package.sh "redhat" "7"; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then ${DIST_REPO}/scripts/package.sh "ubuntu" "14.04"; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then sudo chown -R travis:travis ${DIST_REPO}/rpms/build; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then sudo chown travis:travis ${DIST_REPO}/deb_dist/*.deb; fi
before_deploy: PKG_VERSION=$(python -c "import icontrol; print(icontrol.__version__)")
deploy:
- provider: releases
api_key:
secure: Nc4NrVZqv5L0Ss8UQh0Glx8AKkL1NfClcvmOrg6kyj+jqnZYbqVbWN7Od8K9tp9pD613mQ86RL8vDV25wxEQY/Z0MidKuWqmM7PkriCe6ZXYhO2qB/jTouWr6ucv2xz4CZE2HRV3gJMKT6zFzKUZD2zUcojoIfzOM1KK2ggohEzkXXzpCtXFbVRB5B5WpMJ5+MQKBKGAUIF2RCiMiVRkqIfEg9dVziNNsSfXOjq5zelEIx3ePj/9/1OCrcjIpdp1SDc7soM79JDcmTyUkeUiczrZyXqw9972wI3zYDTAK/cDyPv/DzHF+N4jLOlI8j1lx8u/tgukAN98x2PqLhkxnezz1wGX17UDyQEvhCXs94+dhB20QulVfjCz+t2xaFozsC5z2C22ogRNIWtIg65x/Uj8YyO1AqNG8gmEYHErlQQGUcdyWhoApvAEF7BGFRZzlyWRBpxu3m4LKPRhahF1g3qOqVt3SHNG2uF4zJOJf+8MBG07A0QNhWCfre5sszsxUaiaePjUrABAgRijU2MPnOwaEzfnPoFH6j40CrpYhVQRn1v97e8Nk547gErIaAoATeJ4XDhAOXWj8qZrN9XBRtnu0AqVL59JtpeORAT5PWjM2bU5gUYk6CuBofdVOVo7qBWFL0nwu8hUneD5ur6t2v6TinktW4zheNNHQUFsH/4=
file:
- ${DIST_REPO}/rpms/build/f5-icontrol-rest-${PKG_VERSION}-1.el7.noarch.rpm
- ${DIST_REPO}/deb_dist/python-f5-icontrol-rest_${PKG_VERSION}-1_1404_all.deb
skip_cleanup: true
overwrite: true
on:
repo: F5Networks/f5-icontrol-rest-python
tags: true
python: 2.7
- provider: pypi
user: $PYPI_USER
password: $PYPI_PASSWORD
on:
all_branches: true
tags: true
python: 2.7
notifications:
slack:
rooms:
- f5openstackdev:$SLACK_PROJECT_TOKEN
- f5openstackdev:$SLACK_BUILD_STATUS_TOKEN
on_success: change
on_failure: always