-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #403 from xross/feat/tests_xccm
Remove use of view file
- Loading branch information
Showing
2 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
// This file relates to internal XMOS infrastructure and should be ignored by external users | ||
|
||
@Library('xmos_jenkins_shared_library@develop') _ | ||
@Library('[email protected]') _ | ||
|
||
def clone_test_deps() { | ||
dir("${WORKSPACE}") { | ||
sh "git clone [email protected]:xmos/test_support" | ||
sh "git -C test_support checkout c820ebe67bea0596dabcdaf71a590c671385ac35" | ||
} | ||
} | ||
|
||
getApproval() | ||
|
||
|
@@ -10,7 +17,6 @@ pipeline { | |
} | ||
environment { | ||
REPO = 'lib_xud' | ||
VIEW = getViewName(REPO) | ||
} | ||
options { | ||
buildDiscarder(xmosDiscardBuildSettings()) | ||
|
@@ -26,11 +32,7 @@ pipeline { | |
} | ||
|
||
stages { | ||
stage('Get view') { | ||
steps { | ||
xcorePrepareSandbox("${VIEW}", "${REPO}") | ||
} | ||
} | ||
|
||
stage('Build examples') { | ||
steps { | ||
println "Stage running on ${env.NODE_NAME}" | ||
|
@@ -49,21 +51,26 @@ pipeline { | |
|
||
stage('Library checks') { | ||
steps { | ||
runLibraryChecks("${WORKSPACE}/${REPO}") | ||
runLibraryChecks("${WORKSPACE}/${REPO}", "v2.0.1") | ||
} | ||
} | ||
|
||
stage('Tests') | ||
{ | ||
steps { | ||
dir("${REPO}/tests"){ | ||
viewEnv(){ | ||
withVenv{ | ||
|
||
// Note, moves to WORKSPACE | ||
clone_test_deps() | ||
|
||
withTools(params.TOOLS_VERSION) { | ||
dir("${REPO}/tests") { | ||
createVenv(reqFile: "requirements.txt") | ||
withVenv{ | ||
runPytest('--numprocesses=8 --smoke --enabletracing') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} // dir | ||
} // withTools | ||
} // steps | ||
post | ||
{ | ||
failure | ||
|
@@ -74,9 +81,6 @@ pipeline { | |
} | ||
} | ||
post { | ||
success { | ||
updateViewfiles() | ||
} | ||
cleanup { | ||
xcoreCleanSandbox() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters