forked from StreisandEffect/streisand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (28 loc) · 1.04 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
---
dist: trusty
language: python
python: "2.7"
# Use isolated build instance
sudo: required
env:
global:
- ANSIBLE_CONFIG=tests/ansible.cfg
before_install:
- sudo apt-get update -qq
- sudo apt-get install python-pip python-dev ca-certificates shellcheck -qq
install:
- pip install ansible==2.3.0.0
- pip install urllib3 yamllint
- ansible --version
script:
# Travis will run all `script` tasks even if one fails. In order to have the
# first failure terminate the build we list each script step with the shell
# `&&` operator as one script task.
#
# https://docs.travis-ci.com/user/customizing-the-build/#Customizing-the-Build-Step
#
# * ./tests/shellcheck.sh tests for shell script errors for all *.sh files
# * ./tests/yamlcheck.sh tests for yaml errors for all *.yml files
# * ./tests/test.sh syntax will check for Ansible syntax errors
# * ./tests/test.sh ci will install dev dependencies and run the ci playbooks
- ./tests/shellcheck.sh && ./tests/yamlcheck.sh && ./tests/tests.sh syntax && ./tests/tests.sh ci