forked from f5devcentral/f5-cccl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 952 Bytes
/
.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
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__")
# services: # needed for later work to build .deb and .rpm natively
# - 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
before_deploy: PKG_VERSION=$(python -c "import f5; print(f5_cccl.__version__)")