forked from Capgemini/kubeform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
43 lines (41 loc) · 1.4 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
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.16
- 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)' ';'
- script:
name: syntax-check ansible playbook
code: |
echo localhost > wercker_inventory
ansible-galaxy install --force -r requirements.yml
ansible-playbook -i wercker_inventory --syntax-check site.yml
deploy:
# Override the python:2.7 box
box:
id: node:4-slim
steps:
- install-packages:
packages: git
- npm-install:
options: -g rimraf gitbook-cli
- script:
name: Generate docs
code: |
npm run docs:build
- lukevivier/gh-pages:
token: $GITHUB_TOKEN
basedir: _book