forked from arillso/ansible.sudoers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (36 loc) · 850 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
38
39
40
41
42
43
44
45
46
47
48
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Install ansible-lint
- pip install ansible-lint
# Install yamllint
- pip install yamllint
# Install tests rules
- git submodule add https://github.com/arillso/tests tests
before_script:
# Check ansible version
- ansible --version
# Check ansible-lint version
- ansible-lint --version
# Check ansible-lint version
- yamllint --version
script:
# Ansible Lint check
- ansible-lint -R -r tests/ansible-lint/ .
# YAML Lint check
- yamllint -c tests/yaml-lint/yamllint.yml .
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email:
on_success: never
on_failure: always