forked from xmos/lib_i2c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
81 lines (79 loc) · 1.9 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@Library('[email protected]') _
getApproval()
pipeline {
agent none
stages {
stage('Standard build and XS3 tests') {
agent {
label 'x86_64&&brew&&macOS'
}
environment {
REPO = 'lib_i2c'
VIEW = getViewName(REPO)
}
options {
skipDefaultCheckout()
}
stages {
stage('Get view') {
steps {
xcorePrepareSandbox("${VIEW}", "${REPO}")
}
}
stage('Library checks') {
steps {
xcoreLibraryChecks("${REPO}")
}
}
stage('xCORE App XS2 builds') {
steps {
forAllMatch("${REPO}/examples", "app_*/") { path ->
runXmake(path)
}
forAllMatch("${REPO}/examples", "AN*/") { path ->
runXmake(path)
}
}
}
stage('xCORE App XCOREAI builds') {
steps {
forAllMatch("${REPO}/examples", "app_*/") { path ->
runXmake(path, '', 'XCOREAI=1')
}
forAllMatch("${REPO}/examples", "AN*/") { path ->
runXmake(path, '', 'XCOREAI=1')
}
}
}
stage('Doc builds') {
steps {
runXdoc("${REPO}/${REPO}/doc")
forAllMatch("${REPO}/examples", "AN*/") { path ->
runXdoc("${path}/doc")
}
// Archive all the generated .pdf docs
archiveArtifacts artifacts: "${REPO}/**/pdf/*.pdf", fingerprint: true, allowEmptyArchive: true
}
}
stage('Tests XS1, XS2 and XCOREAI') {
steps {
runXmostest("${REPO}", 'tests')
}
}
}
post {
cleanup {
xcoreCleanSandbox()
}
}
}
}
post {
success {
node("linux") {
updateViewfiles()
xcoreCleanSandbox()
}
}
}
}