-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (49 loc) · 1.48 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
---
sudo: required
dist: bionic
language: python
python:
- 3.8
services:
- docker
cache:
directories:
- vendor/bundle
- $HOME/.cache/pip
- $HOME/.local
- roles
jobs:
include:
- stage: Spec
name: Xenial
env: ANSIBLE_VERSION="2.9" ENVIRONMENT_NAME=xenial
script: bundle exec rake spec:$ENVIRONMENT_NAME
- name: Bionic
env: ANSIBLE_VERSION="2.9" ENVIRONMENT_NAME=bionic
script: bundle exec rake spec:$ENVIRONMENT_NAME
- name: Legacy Parameters
env: ANSIBLE_VERSION="2.5" ENVIRONMENT_NAME=trusty ANSIBLE_PYTHON_VERSION=2
python: 2.7
script: bundle exec rake spec:$ENVIRONMENT_NAME
- stage: Idempotence
name: Xenial
env: ANSIBLE_VERSION="2.9" ENVIRONMENT_NAME=xenial
script: ./idempotence.sh
- name: Bionic
env: ANSIBLE_VERSION="2.9" ENVIRONMENT_NAME=bionic
script: ./idempotence.sh
- name: Legacy Parameters
env: ANSIBLE_VERSION="2.5" ENVIRONMENT_NAME=trusty ANSIBLE_PYTHON_VERSION=2
python: 2.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/