Add Jenkins Pipeline
This commit is contained in:
61
Jenkinsfile
vendored
Normal file
61
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
@Library('xmos_jenkins_shared_library@master') _
|
||||
pipeline {
|
||||
agent {
|
||||
label 'x86&&macOS&&Apps'
|
||||
}
|
||||
environment {
|
||||
VIEW = 'xua'
|
||||
REPO = 'lib_xua'
|
||||
}
|
||||
options {
|
||||
skipDefaultCheckout()
|
||||
}
|
||||
stages {
|
||||
stage('Get view') {
|
||||
steps {
|
||||
prepareAppsSandbox("${VIEW}", "${REPO}")
|
||||
}
|
||||
}
|
||||
stage('Library checks') {
|
||||
steps {
|
||||
xcoreLibraryChecks("${REPO}")
|
||||
}
|
||||
}
|
||||
stage('Tests') {
|
||||
steps {
|
||||
runXmostest("${REPO}", 'tests')
|
||||
}
|
||||
}
|
||||
stage('Host builds') {
|
||||
steps {
|
||||
dir("${REPO}") {
|
||||
dir("${REPO}") {
|
||||
dir('host') {
|
||||
dir('xmosdfu') {
|
||||
sh 'make -f Makefile.OSX64'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('xCORE builds') {
|
||||
steps {
|
||||
dir("${REPO}") {
|
||||
xcoreAllAppNotesBuild('examples')
|
||||
dir("${REPO}") {
|
||||
runXdoc('doc')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
updateViewfiles()
|
||||
}
|
||||
cleanup {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user