-
Notifications
You must be signed in to change notification settings - Fork 105
/
wercker.yml
33 lines (33 loc) · 1.48 KB
/
wercker.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
box: python:2.7
no-response-timeout: 15
build:
steps:
- install-packages:
packages: unzip
- pip-install:
requirements_file: "requirements-test.txt"
- capgemini/ansible-lint:
name: run ansible-lint against the site.yml playbook
playbook: site.yml
- capgemini/terraform-install:
version: 0.6.14
- script:
name: terraform validate
code: |
find terraform/aws/private-cloud/ -type d \( -path terraform/aws/private-cloud/bin -path .terraform \) -prune -exec sh -c '(cd {} && terraform validate)' ';'
find terraform/aws/public-cloud/ -type d \( -path .terraform \) -prune -exec sh -c '(cd {} && terraform validate)' ';'
find terraform/digitalocean/ -type d \( -path .terraform \) -prune -exec sh -c '(cd {} && terraform validate)' ';'
find terraform/gce/ -type d \( -path .terraform \) -prune -exec sh -c '(cd {} && terraform validate)' ';'
find terraform/rackspace/ -type d \( -path .terraform \) -prune -exec sh -c '(cd {} && terraform validate)' ';'
- script:
name: syntax-check ansible playbook
code: |
echo localhost > wercker_inventory
ansible-galaxy install --force -r contrib-plugins/plugins.yml
ansible-galaxy install --force -r requirements.yml
ansible-playbook -i wercker_inventory --syntax-check site.yml
- script:
name: scripts testing
cwd: bootstrap/tests
code: |
/bin/bash test.sh