-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (42 loc) · 1.04 KB
/
Jenkinsfile
File metadata and controls
44 lines (42 loc) · 1.04 KB
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
@Library('xmos_jenkins_shared_library@v0.43.1') _
getApproval()
pipeline {
agent {
label "xcore.ai"
}
options {
// skipDefaultCheckout()
buildDiscarder(xmosDiscardBuildSettings(onlyArtifacts=false))
timestamps()
}
environment {
REPO = 'lib_tflite_micro'
VIEW = getViewName(REPO)
}
stages {
stage('Build') {
steps {
createVenv(reqFile: "requirements.txt")
withVenv {
sh 'git submodule update --depth=1 --init --recursive --jobs 8'
sh 'make init'
sh 'make patch'
sh 'make build'
}
}
}
stage("Test") {
steps {
withVenv {
sh 'make init'
sh 'make test'
}
}
}
}
post {
cleanup {
cleanWs()
}
}
}