forked from F5Networks/f5-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (36 loc) · 1.12 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
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
- pytest -x -s $TRAVIS_BUILD_DIR/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/
python: "3.7"
- name: F5 Style and F5 Sanity Tests
script:
- inv test.style
- inv test.f5-sanity
python: "3.6"
- name: Ansible Sanity Tests - Py3.6
script:
- inv test.ansible-test -r -p 3.6
python: "3.6"
- name: Ansible Sanity Tests - Py3.7
script:
- inv test.ansible-test -r -p 3.7
python: "3.7"