Skip to content

Commit

Permalink
Jenkinsfile modified to include Tap reporting of or1k-tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nancy Chauhan authored and Nancy Chauhan committed Aug 4, 2019
1 parent ee7f758 commit 67c51b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis/run-or1k-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ result=$?
if [ $result != 0 ] ; then
cat runtests.log
fi

cp $HOME/src/tools/or1k-tests/native/report.tap /src

exit $result
14 changes: 14 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 1") {
Expand All @@ -28,6 +29,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 2") {
Expand All @@ -40,6 +42,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 3") {
Expand All @@ -52,6 +55,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 4") {
Expand All @@ -64,6 +68,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 5") {
Expand All @@ -76,6 +81,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 6") {
Expand All @@ -88,6 +94,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 7") {
Expand All @@ -100,6 +107,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 8") {
Expand All @@ -112,6 +120,7 @@ pipeline {
}
steps {
dockerrun()
tapReporting()
}
}
stage("testing 9") {
Expand All @@ -125,6 +134,7 @@ pipeline {
//TODO: remove try/catch once the failing test is fixed (https://github.com/openrisc/mor1kx/issues/71)
try {
dockerrun()
tapReporting()
} catch (Exception e) {
echo "Allowed failure"
}
Expand All @@ -138,4 +148,8 @@ pipeline {

void dockerrun() {
sh 'docker run --rm -v $(pwd):/src -e "JOB=$JOB" -e "SIM=$SIM" -e "PIPELINE=$PIPELINE" -e "EXPECTED_FAILURES=$EXPECTED_FAILURES" -e "EXTRA_CORE_ARGS=$EXTRA_CORE_ARGS" librecores/librecores-ci-openrisc /src/.travis/test.sh'
}

void tapReporting() {
step([$class: "TapPublisher", testResults: "report.tap"])
}

0 comments on commit 67c51b0

Please sign in to comment.