forked from F5Networks/f5-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.14 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
language: python
before_install:
- git config --global user.email "[email protected]"
- 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
- name: Deploy_Docs
if: branch = devel AND type != pull_request
jobs:
include:
- stage: Tests
name: Unit Tests
script:
- travis_retry pip install pytest --upgrade
- pytest -x -s $TRAVIS_BUILD_DIR/test/units/modules/network/f5/
python: "3.6"
- name: Style and Sanity Tests
script: inv test.style
python: "3.6"
- name: Docs Tests
script: inv docs.build
python: "3.6"
- stage: Deploy_Docs
script:
- travis_retry pip install -r requirements.readthedocs.txt
- inv docs.module
- make docker-test && make docker-deploy
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths /products/orchestration/ansible/devel
python: "3.6"