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
bc04c97c
Commit
bc04c97c
authored
Sep 21, 2022
by
BO ZHANG
🏀
Browse files
consider importability in exit code
parent
23cb978d
Pipeline
#146
passed with stages
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pipelines/build.sh
View file @
bc04c97c
...
...
@@ -47,17 +47,21 @@ echo "===================== importability ====================="
echo
" > try 'from
$JOB_NAME
.top_level_interface import *'"
python
-c
"from
$JOB_NAME
.top_level_interface import *"
if
[
"
$?
"
!=
0
]
;
then
import_status
=
$?
echo
"Failed!"
else
echo
"Done!"
fi
echo
"===================== POST BUILD BELOW ====================="
# the exit value is determined from unit tests
if
[
"
$unittest_status
"
!=
0
]
;
then
exit
$unittest_status
if
[
"
$unittest_status
"
!=
0
]
||
[
"
$import_status
"
!=
0
]
;
then
echo
"Test failed!"
echo
"importability status:
$import_status
"
echo
"Unit test status:
$unittest_status
"
echo
"===================== POST BUILD BELOW ====================="
exit
1
else
echo
"===================== POST BUILD BELOW ====================="
exit
0
fi
...
...
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