ansible_drone/pipeline.libsonnet
Bo-Yi Wu 93a25837f8 add testing
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-06-20 01:07:31 +08:00

27 lines
576 B
Plaintext

{
build(version, os='linux', arch='amd64'):: {
kind: 'pipeline',
name: os + '-' + arch,
platform: {
os: os,
arch: arch,
},
steps: [
{
name: 'lint',
image: 'chusiang/ansible:' + version,
pull: 'always',
environment: {
ANSIBLE_VERSION: version,
},
commands: [
'echo "==> Syntax Check on Ansible ' + version + ' ..."',
'ansible --version',
'ansible-lint tasks/setup.yml',
'ansible-playbook --syntax-check',
],
},
],
},
}