Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311929
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/jobs/swh-environment.yaml b/jobs/swh-environment.yaml
index d4858dc..6473561 100644
--- a/jobs/swh-environment.yaml
+++ b/jobs/swh-environment.yaml
@@ -1,69 +1,73 @@
- project:
name: DENV
display-name: swh-environment
jobs:
- "{name}"
- job:
name: DENV/tests
description: Run tests for each swh module in development version
node: swh-sphinx
triggers:
- timed: "H */6 * * *"
scm:
- git:
url: https://forge.softwareheritage.org/source/swh-environment.git
branches:
- "*/master"
wrappers:
- timeout:
timeout: 90
abort: true
- timestamps
builders:
- shell: |
#!/bin/bash
# fetch swh repositories
mr -j 4 -t update
# setup a virtualenv
python3 -m venv .venv
. .venv/bin/activate
# upgrade pip as default installed version is too outdated to properly
# install all swh dependencies
pip install --upgrade pip
# install dependencies
./bin/install
cd swh-graph
make java >/dev/null
+ cd ../swh-web
+ yarn install
cd ..
# execute tests in each swh module
exit_code=0
for module in $(./bin/ls-py-modules)
do
cd $module
tests_dir=$(echo $module | sed 's/-/\//g')/tests
if [ -d "$tests_dir" ]
then
- # pipe tests output to stdout and log file
- make test 2>&1 | tee ../$module.log
+ # pipe checks and tests output to stdout and log file
+ make check 2>&1 | tee ../$module.log
tests_status=${PIPESTATUS[0]}
+ make test 2>&1 | tee -a ../$module.log
+ tests_status=$(($tests_status + ${PIPESTATUS[0]}))
# remove log file if tests succeeded
if [[ "$tests_status" == "0" ]]
then
rm -f ../$module.log
fi
# script must be exited with error when a test suite failed
exit_code=$(( tests_status > exit_code ? tests_status : exit_code ))
fi
cd ..
done
exit $exit_code
publishers:
- archive:
artifacts: "*.log"
allow-empty: true
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jul 3, 10:37 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3298482
Attached To
rCJSWH Jenkins jobs
Event Timeline
Log In to Comment