-
Notifications
You must be signed in to change notification settings - Fork 231
/
.travis.yml
36 lines (32 loc) · 936 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
29
30
31
32
33
34
35
36
sudo: required
dist: xenial
language: python
before_install:
- git config --global user.email "Ansible_TravisCI@f5.com"
- git config --global user.name "Travis F5 Ansible"
install:
- travis_retry sudo apt-get update
- travis_retry sudo apt-get -y install libffi-dev libssl-dev
- travis_retry pip install -r requirements.travis.txt
stages:
- name: Tests
if: branch = devel AND type = pull_request
jobs:
include:
- stage: Tests
name: F5 Unit Tests
script:
- export PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR
- travis_retry inv test.install-dep
- travis_retry pip install pytest --upgrade
- inv test.unit
python: "3.9"
- name: F5 Style and F5 Sanity Tests
script:
- inv test.style
- inv test.f5-sanity
python: "3.9"
- name: Ansible Sanity Tests - Py3.9
script:
- inv test.ansible-test -r -p 3.9
python: "3.9"