Skip to content
GitLab
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
Sep 20, 2022
by
BO ZHANG
🏀
Browse files
added exit value for script
parent
b2f00b9e
Pipeline
#139
passed with stages
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
pipelines/build.sh
View file @
f8e3b2e0
...
@@ -26,6 +26,7 @@ if [ "$JOB_NAME" != "csst_proto" ]; then
...
@@ -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
curl
-O
https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/test_codestyle.py
fi
fi
coverage run
-m
pytest
coverage run
-m
pytest
unittest_status
=
$?
echo
"===================== make coverage ====================="
echo
"===================== make coverage ====================="
coverage report
coverage report
...
@@ -36,6 +37,14 @@ echo "===================== importability ====================="
...
@@ -36,6 +37,14 @@ echo "===================== importability ====================="
python
-c
"from
$JOB_NAME
.top_level_interface import *"
python
-c
"from
$JOB_NAME
.top_level_interface import *"
echo
"===================== POST BUILD BELOW ====================="
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:
# In Jenkins:
#!/bin/bash
#!/bin/bash
#sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/build.sh)"
#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
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