-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
44 lines (44 loc) · 1.53 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
language: python
python:
- "2.7"
- "3.5"
sudo: true
env:
global:
- REPO="f5-cccl"
- PKG_VERSION=$(python -c "import f5_cccl; print f5_cccl.__version__")
- MARATHON_BIGIP_CTLR_COMMIT_ISH=8a52ddb37191e9dd53c74ebfb2248dafe834e9e6
- K8S_BIGIP_CTLR_COMMIT_ISH=e7550564dd61ac11df70799bc9648139d47f1edb
services:
- docker
before_install:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis F5 Openstack"
install:
- pip install tox
- pip install -r requirements.test.txt
- pip install -r requirements.docs.txt
- python ./setup.py install
script:
- tox -e style
- tox -e unit
# For security, travis CI not provide env vars on fork PRs.
# So we only run coverage when the env var is present at merge.
# https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions
- if [ "$COVERALLS_REPO_TOKEN" != "" ]; then tox -e coverage; fi
- tox -e functional
deploy:
# push marathon dev-image for nightly regression tests
- provider: script
skip_cleanup: true
script: ./build-tools/system-test-img.sh F5Networks/marathon-bigip-ctlr $MARATHON_BIGIP_CTLR_COMMIT_ISH ./build-tools/build-runtime-images.sh $DOCKER_NAMESPACE
on:
python: "2.7"
all_branches: true
# push k8s dev-image for nightly regression tests
- provider: script
skip_cleanup: true
script: ./build-tools/system-test-img.sh F5Networks/k8s-bigip-ctlr $K8S_BIGIP_CTLR_COMMIT_ISH "make prod" $DOCKER_NAMESPACE
on:
python: "2.7"
all_branches: true