blob: a78ec9c988268a7b7065fb0cb19b743f156636ab (
plain)
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
48
49
50
|
- job:
name: infrastructure-ansible-playbook
project-type: freestyle
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
disabled: false
node: docker-xenial-amd64
display-name: 'Infrastructure - Unit Test for the ansible-playbook repository'
concurrent: true
triggers:
- gerrit:
server-name: 'review.linaro.org'
override-votes: true
gerrit-build-successful-verified-value: 1
gerrit-build-failed-verified-value: -1
trigger-for-unreviewed-patches: true
readable-message: false
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'infrastructure/ansible-playbooks'
branches:
- branch-compare-type: 'PLAIN'
branch-pattern: 'master'
wrappers:
- timeout:
timeout: 300
- timestamps
builders:
- shell: |
#!/bin/bash
sudo apt-get -q=2 update
sudo apt-get -q=2 install -y python-pip libssl-dev libffi-dev
sudo pip install ansible ansible-lint==4.0.0
git clone https://git.linaro.org/$GERRIT_PROJECT -b $GERRIT_BRANCH
cd *
git log -n1
git fetch https://review.linaro.org/$GERRIT_PROJECT $GERRIT_REFSPEC && git checkout FETCH_HEAD
bash ./tests/ansible-lint-test.sh
|