-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
80 lines (64 loc) · 1.97 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
sudo: required
dist: bionic
language: python
python:
- "2.7"
services:
- docker
cache:
bundler: true
pip: true
apt: true
directories:
- vendor/bundle
- $HOME/.cache/pip
- $HOME/.local
- roles
jobs:
include:
- stage: Spec
name: Trusty
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=trusty
script: bundle exec rake spec:$ENVIRONMENT_NAME
- name: Xenial
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=xenial
script: bundle exec rake spec:$ENVIRONMENT_NAME
- name: Bionic
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=bionic
script: bundle exec rake spec:$ENVIRONMENT_NAME
- name: Ansible 2.5
env: ANSIBLE_VERSION="2.5" ENVIRONMENT_NAME=bionic
script: bundle exec rake spec:$ENVIRONMENT_NAME
- name: Python 3
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=bionic ANSIBLE_PYTHON_VERSION=3
python: 3.7
script: bundle exec rake spec:$ENVIRONMENT_NAME
- stage: Idempotence
name: Trusty
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=trusty
script: ./idempotence.sh
- name: Xenial
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=xenial
script: ./idempotence.sh
- name: Bionic
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=bionic
script: ./idempotence.sh
- name: Ansible 2.5
env: ANSIBLE_VERSION="2.5" ENVIRONMENT_NAME=bionic
script: ./idempotence.sh
- name: Python 3
env: ANSIBLE_VERSION="2.8" ENVIRONMENT_NAME=bionic ANSIBLE_PYTHON_VERSION=3
python: 3.7
script: ./idempotence.sh
before_install:
- docker pull ubuntu:${ENVIRONMENT_NAME}
- travis_retry bundle install --deployment
install:
- travis_retry pip install -U ansible==${ANSIBLE_VERSION}.*
- travis_retry ansible-galaxy install -r roles.yml
- travis_wait bundle exec rake environment:${ENVIRONMENT_NAME}:provision
after_script:
- bundle exec rake environment:destroy
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/