forked from PAWPAW-Mirror/lib_xua
62 lines
1.0 KiB
Groovy
62 lines
1.0 KiB
Groovy
@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()
|
|
}
|
|
}
|
|
}
|