-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (29 loc) · 979 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
37
---
# dist: bionic
matrix:
include:
- os: linux
dist: bionic
- os: linux
dist: xenial
#group: travis_latest
#env: DOCKER="debian:buster" VARIANT="debian"
language: python
python: "3.5"
# Doc: https://docs.travis-ci.com/user/customizing-the-build#Build-Matrix
env:
- ANSIBLE_VERSION=latest
branches:
only:
- master
before_install:
- sudo apt-get update -qq
install:
# Install Ansible.
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi
script:
# Check the role/playbook's syntax.
- ansible-playbook --limit="local" --inventory-file=provisioning/hosts provisioning/playbook.yml --syntax-check
# Run the role/playbook with ansible-playbook.
- ansible-playbook --limit="local" --inventory-file=provisioning/hosts provisioning/playbook.yml -vvvv --skip-tags update,copy_host_ssh_id