-
Notifications
You must be signed in to change notification settings - Fork 138
/
.travis.yml
57 lines (46 loc) · 1.25 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
# Standards: 0.11
---
branches:
only:
- master
- build
group: stable
dist: amazonlinux
language: python
python: "2.7"
# Use the new container infrastructure instead of legacy VM based
# https://docs.travis-ci.com/user/reference/overview/#sudo-enabled
sudo: false
# Install python-pip
addons:
apt:
packages:
- python-pip
env:
# Following Ansible "Release and maintenance" guide
# Ref: https://docs.ansible.com/ansible/2.7/reference_appendices/release_and_maintenance.html
#- ANSIBLE_INSTALL_VERSION=2.2.3
- ANSIBLE_INSTALL_VERSION=2.3.3
- ANSIBLE_INSTALL_VERSION=2.4.6
- ANSIBLE_INSTALL_VERSION=2.5.9
- ANSIBLE_INSTALL_VERSION=2.6.5
- ANSIBLE_INSTALL_VERSION=2.7.0
# Make sure we have the latest package list and OS
before_install:
- sudo apt update
install:
# Install ansible and ansible-review
- pip install ansible==$ANSIBLE_INSTALL_VERSION \
ansible-review \
yamllint \
git+https://github.com/ansible/ansible-lint.git
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- make syntax
- make review
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/