Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
f8e3b2e0
Commit
f8e3b2e0
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
added exit value for script
parent
b2f00b9e
dev
main
No related merge requests found
Pipeline
#139
passed with stages
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pipelines/build.sh
+9
-0
pipelines/build.sh
with
9 additions
and
0 deletions
+9
-0
pipelines/build.sh
+
9
-
0
View file @
f8e3b2e0
...
...
@@ -26,6 +26,7 @@ if [ "$JOB_NAME" != "csst_proto" ]; then
curl
-O
https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/test_codestyle.py
fi
coverage run
-m
pytest
unittest_status
=
$?
echo
"===================== make coverage ====================="
coverage report
...
...
@@ -36,6 +37,14 @@ echo "===================== importability ====================="
python
-c
"from
$JOB_NAME
.top_level_interface import *"
echo
"===================== POST BUILD BELOW ====================="
# the exit value is determined from unit tests
if
[
"
$unittest_status
"
!=
0
]
;
then
exit
$unittest_status
else
exit
0
fi
# In Jenkins:
#!/bin/bash
#sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/build.sh)"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets