add testing
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
06f0d48d33
commit
93a25837f8
9
.drone.jsonnet
Normal file
9
.drone.jsonnet
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
local pipeline = import 'pipeline.libsonnet';
|
||||||
|
local name = 'drone-facebook';
|
||||||
|
|
||||||
|
[
|
||||||
|
pipeline.build('2.4', 'linux', 'amd64'),
|
||||||
|
pipeline.build('2.5', 'linux', 'amd64'),
|
||||||
|
pipeline.build('2.6', 'linux', 'amd64'),
|
||||||
|
pipeline.build('2.7', 'linux', 'amd64'),
|
||||||
|
]
|
70
.drone.yml
70
.drone.yml
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: testing
|
name: linux-amd64
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
|
@ -9,7 +9,73 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
pull: always
|
pull: always
|
||||||
image: ansible/ansible:ubuntu1404
|
image: chusiang/ansible:2.4
|
||||||
commands:
|
commands:
|
||||||
|
- "echo \"==> Syntax Check on Ansible 2.4 ...\""
|
||||||
- ansible --version
|
- ansible --version
|
||||||
- ansible-lint tasks/setup.yml
|
- ansible-lint tasks/setup.yml
|
||||||
|
- ansible-playbook --syntax-check
|
||||||
|
environment:
|
||||||
|
ANSIBLE_VERSION: 2.4
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: linux-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: lint
|
||||||
|
pull: always
|
||||||
|
image: chusiang/ansible:2.5
|
||||||
|
commands:
|
||||||
|
- "echo \"==> Syntax Check on Ansible 2.5 ...\""
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint tasks/setup.yml
|
||||||
|
- ansible-playbook --syntax-check
|
||||||
|
environment:
|
||||||
|
ANSIBLE_VERSION: 2.5
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: linux-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: lint
|
||||||
|
pull: always
|
||||||
|
image: chusiang/ansible:2.6
|
||||||
|
commands:
|
||||||
|
- "echo \"==> Syntax Check on Ansible 2.6 ...\""
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint tasks/setup.yml
|
||||||
|
- ansible-playbook --syntax-check
|
||||||
|
environment:
|
||||||
|
ANSIBLE_VERSION: 2.6
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: linux-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: lint
|
||||||
|
pull: always
|
||||||
|
image: chusiang/ansible:2.7
|
||||||
|
commands:
|
||||||
|
- "echo \"==> Syntax Check on Ansible 2.7 ...\""
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint tasks/setup.yml
|
||||||
|
- ansible-playbook --syntax-check
|
||||||
|
environment:
|
||||||
|
ANSIBLE_VERSION: 2.7
|
||||||
|
|
||||||
|
...
|
||||||
|
|
26
pipeline.libsonnet
Normal file
26
pipeline.libsonnet
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
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',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user