Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AUSF
Commits
02fd0d3a
Commit
02fd0d3a
authored
Jul 01, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): better detection of build stages
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
0f32e538
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
build/scripts/build_helper.ausf
build/scripts/build_helper.ausf
+12
-2
ci-scripts/generateHtmlReport.py
ci-scripts/generateHtmlReport.py
+11
-9
No files found.
build/scripts/build_helper.ausf
View file @
02fd0d3a
...
...
@@ -37,6 +37,7 @@ source $THIS_SCRIPT_PATH/build_helper.libconfig
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_fmt() {
echo "Starting to install fmt"
if [ $1 -eq 0 ]; then
read -p "Do you want to install open-source formatting library for C++ ? <y/N> " prompt
OPTION=""
...
...
@@ -65,6 +66,7 @@ install_fmt() {
cd /tmp
rm -rf /tmp/fmt*
fi
echo "fmt installation complete"
return 0
}
...
...
@@ -72,6 +74,7 @@ install_fmt() {
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_spdlog_from_git() {
echo "Starting to install spdlog"
if [ $1 -eq 0 ]; then
read -p "Do you want to install spdlog ? <y/N> " prompt
OPTION=""
...
...
@@ -104,6 +107,7 @@ install_spdlog_from_git() {
sed -i '/#define SPDLOG_ENABLE_SYSLOG/s/^\/\///g' include/spdlog/tweakme.h
popd
fi
echo "spdlog installation complete"
return 0
}
...
...
@@ -111,6 +115,7 @@ install_spdlog_from_git() {
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_pistache_from_git() {
echo "Starting to install pistache"
if [ $1 -eq 0 ]; then
read -p "Do you want to install Pistache ? <y/N> " prompt
OPTION="-y"
...
...
@@ -153,6 +158,7 @@ install_pistache_from_git() {
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
popd
fi
echo "pistache installation complete"
return 0
}
...
...
@@ -160,6 +166,7 @@ install_pistache_from_git() {
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_nlohmann_from_git() {
echo "Starting to install Nlohmann Json"
if [ $1 -eq 0 ]; then
read -p "Do you want to install Nlohmann Json ? <y/N> " prompt
OPTION=""
...
...
@@ -198,6 +205,7 @@ install_nlohmann_from_git() {
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
popd
fi
echo "Nlohmann Json installation complete"
return 0
}
...
...
@@ -205,6 +213,7 @@ install_nlohmann_from_git() {
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
install_nghttp2_from_git() {
echo "Starting to install nghttp2"
if [ $1 -eq 0 ]; then
read -p "Do you want to install nghttp2 ? <y/N> " prompt
OPTION=""
...
...
@@ -286,6 +295,7 @@ install_nghttp2_from_git() {
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
popd
fi
echo "nghttp2 installation complete"
return 0
}
...
...
@@ -342,6 +352,7 @@ check_install_ausf_deps() {
automake \
make \
bison \
gcc-c++ \
$CMAKE \
doxygen \
flex \
...
...
@@ -410,6 +421,7 @@ check_install_ausf_deps() {
echo "Install distro libs"
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
echo "distro libs installation complete"
install_spdlog_from_git $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
...
...
@@ -522,5 +534,3 @@ check_install_ausf_min_deps() {
return 0
}
ci-scripts/generateHtmlReport.py
View file @
02fd0d3a
...
...
@@ -487,24 +487,26 @@ class HtmlReport():
result
=
re
.
search
(
'AUSF deps installation successful'
,
line
)
if
result
is
not
None
:
status
=
True
result
=
re
.
search
(
'
Install spdlog from https://github.com/gabime/spdlog.git
'
,
line
)
result
=
re
.
search
(
'
distro libs installation complete
'
,
line
)
if
result
is
not
None
:
package_install
=
True
spdlog_build_start
=
True
result
=
re
.
search
(
'Branch
\'
master
\'
set up to track remote branch
\'
master
\'
from
\'
origin
\'
'
,
line
)
result
=
re
.
search
(
'Starting to install spdlog'
,
line
)
if
result
is
not
None
:
spdlog_build_start
=
True
result
=
re
.
search
(
'spdlog installation complete'
,
line
)
if
result
is
not
None
and
spdlog_build_start
:
spdlog_build_status
=
True
result
=
re
.
search
(
'
Install Pistache from
'
,
line
)
result
=
re
.
search
(
'
Starting to install pistache
'
,
line
)
if
result
is
not
None
:
pistache_build_start
=
True
result
=
re
.
search
(
'
Installing: /usr/local/lib/libpistache.a
'
,
line
)
if
result
is
not
None
:
result
=
re
.
search
(
'
pistache installation complete
'
,
line
)
if
result
is
not
None
and
pistache_build_start
:
pistache_build_status
=
True
result
=
re
.
search
(
'
I
nstall Nlohmann Json'
,
line
)
result
=
re
.
search
(
'
Starting to i
nstall Nlohmann Json'
,
line
)
if
result
is
not
None
:
json_build_status
=
True
result
=
re
.
search
(
'
Installing: /usr/local/lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmak
e'
,
line
)
if
result
is
not
None
:
result
=
re
.
search
(
'
Nlohmann Json installation complet
e'
,
line
)
if
result
is
not
None
and
json_build_status
:
json_build_status
=
True
logfile
.
close
()
if
base_image
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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