forked from Capgemini/Apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
47 lines (45 loc) · 1.83 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
box: wercker/default
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
deploy:
steps:
- install-packages:
packages: wget unzip
- pip-install:
requirements_file: "requirements.txt"
- capgemini/apollo-deploy:
cloud: digitalocean
artifact_name: rewasa/apollo-ubuntu-14.04-amd64
artifact_version: 1
terraform_version: 0.5.0
run_tests: true