aboutsummaryrefslogtreecommitdiff
path: root/infrastructure-patchwork-tools.yaml
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2015-09-30 13:50:39 -0500
committerFathi Boudra <fathi.boudra@linaro.org>2015-10-08 09:13:35 +0300
commit4b081298997700fef1e53cfbe171c496d1b6d5ec (patch)
tree22febb52374b372faefede4ae7b63b559b0a672f /infrastructure-patchwork-tools.yaml
parent920c4b972724b8178bcbba21fde64c17b519d50b (diff)
infrastructure-patchwork-tools: add new job
Change-Id: I9d6318a094276159cdb5bb49a50e92c011064abe Signed-off-by: Andy Doan <andy.doan@linaro.org>
Diffstat (limited to 'infrastructure-patchwork-tools.yaml')
-rw-r--r--infrastructure-patchwork-tools.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/infrastructure-patchwork-tools.yaml b/infrastructure-patchwork-tools.yaml
new file mode 100644
index 0000000000..cf672a4b61
--- /dev/null
+++ b/infrastructure-patchwork-tools.yaml
@@ -0,0 +1,54 @@
+- job:
+ name: infrastructure-patchwork-tools
+ 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-utopic
+ display-name: 'Infrastructure - Unit Test CI for the patchwork-tools 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/patchwork-tools'
+ branches:
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: 'master'
+ wrappers:
+ - timeout:
+ timeout: 300
+ - timestamps
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION,length=8}'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ rm -rf $WORKSPACE/*
+ sudo apt-get install -y python-dev python-virtualenv git python-flake8
+
+ git config --global user.email "unittest@example.com"
+ git config --global user.name "unit test"
+
+ 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
+ ./unit-test.sh