From b9f89439731293155ed90fd6bbcc4a53d7500655 Mon Sep 17 00:00:00 2001 From: Nancy Chauhan Date: Tue, 6 Aug 2019 06:48:39 +0530 Subject: [PATCH] Added comments --- .travis/run-or1k-tests.sh | 1 + Jenkinsfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis/run-or1k-tests.sh b/.travis/run-or1k-tests.sh index 67aaf92a..9eebf542 100755 --- a/.travis/run-or1k-tests.sh +++ b/.travis/run-or1k-tests.sh @@ -22,6 +22,7 @@ if [ $result != 0 ] ; then cat runtests.log fi +# copy the report.tap (which has TAP test result) for or1k-tests to /src location cp $HOME/src/tools/or1k-tests/native/report.tap /src exit $result diff --git a/Jenkinsfile b/Jenkinsfile index 26f44e21..a0f49fb1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,6 @@ pipeline { } steps { dockerrun() - tapReporting() } } stage("testing 1") { @@ -146,10 +145,12 @@ pipeline { } } +// data of test.sh is persisted in docker container librecores-ci-openrisc 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' } +// TAP Plugin is used which adds the support to TAP test result files to Jenkins which can be seen at https://ci.librecores.org/job/Projects/job/OpenRISC/ void tapReporting() { step([$class: "TapPublisher", testResults: "report.tap"]) } \ No newline at end of file