forked from xmos/lib_gpio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
55 lines (51 loc) · 986 Bytes
/
Jenkinsfile
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
51
52
53
54
55
@Library('[email protected]') _
getApproval()
pipeline {
agent {
label 'x86_64&&linux'
}
environment {
REPO = 'lib_gpio'
VIEW = getViewName(REPO)
}
options {
skipDefaultCheckout()
}
stages {
stage('Get view') {
steps {
xcorePrepareSandbox("${VIEW}", "${REPO}")
}
}
stage('Library checks') {
steps {
xcoreLibraryChecks("${REPO}")
}
}
stage('Tests') {
steps {
runXmostest("${REPO}", 'tests')
}
}
stage('xCORE builds') {
steps {
dir("${REPO}") {
xcoreAllAppsBuild('examples')
dir("${REPO}") {
runXdoc('doc')
}
}
// Archive all the generated .pdf docs
archiveArtifacts artifacts: "${REPO}/**/pdf/*.pdf", fingerprint: true, allowEmptyArchive: true
}
}
}
post {
success {
updateViewfiles()
}
cleanup {
xcoreCleanSandbox()
}
}
}