Skip to content

Commit 658a3b6

Browse files
committed
Add Jenkins Pipeline
1 parent 84df525 commit 658a3b6

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

Brewfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tap 'homebrew/core'
2+
3+
brew 'perl'
4+
brew 'cpanm'
5+
6+
brew 'python@2'

Jenkinsfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@Library('xmos_jenkins_shared_library@develop') _
2+
3+
getApproval()
4+
5+
pipeline {
6+
agent {
7+
label 'x86_64&&brew'
8+
}
9+
environment {
10+
VIEW = "${env.JOB_NAME.contains('PR-') ? 'lib_xassert_'+env.CHANGE_TARGET : 'lib_xassert_'+env.BRANCH_NAME}"
11+
REPO = 'lib_xassert'
12+
}
13+
options {
14+
skipDefaultCheckout()
15+
}
16+
stages {
17+
stage('Get view') {
18+
steps {
19+
xcorePrepareSandbox("${VIEW}", "${REPO}")
20+
}
21+
}
22+
stage('Library checks') {
23+
steps {
24+
xcoreLibraryChecks("${REPO}")
25+
}
26+
}
27+
stage('Tests') {
28+
steps {
29+
runXmostest("${REPO}", 'tests')
30+
}
31+
}
32+
}
33+
post {
34+
success {
35+
updateViewfiles()
36+
}
37+
cleanup {
38+
cleanWs()
39+
}
40+
}
41+
}

cpanfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
requires 'File::Copy::Recursive';
2+
requires 'LWP::Simple'

0 commit comments

Comments
 (0)