Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
ac103b42
Commit
ac103b42
authored
Oct 13, 2018
by
Samuel GAIST
Committed by
André Anjos
Oct 17, 2018
Browse files
[scripts][before_test] Use gitlab runner id for build container
Use mv rather than ln to handle algorithm libraries.
parent
aba14ccf
Pipeline
#24388
passed with stages
in 13 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/before_test.sh
View file @
ac103b42
...
...
@@ -68,8 +68,7 @@ check_env BEAT_CORE_TEST_DIR
if
[
"
$1
"
==
"build"
]
;
then
for
k
in
"
${
ALGORITHMS
[@]
}
"
;
do
algodir
=
$(
dirname
"
${
k
}
"
)
run_cmd docker run
--rm
--volume
=
"
${
CI_PROJECT_DIR
}
/scripts/build.sh:/build.sh"
--volume
=
"
${
BEAT_CORE_TEST_DIR
}
/
${
algodir
}
:/sources"
--workdir
=
"/sources"
--entrypoint
=
"bash"
"
${
BEAT_CXX_DEV_ENVIRONMENT
}
"
/build.sh
run_cmd
ln
-sf
"
${
BEAT_CORE_TEST_DIR
}
/
${
algodir
}
/build/*.so"
"
${
BEAT_CORE_TEST_DIR
}
/
${
algodir
}
"
;
run_cmd docker run
--rm
--user
=
$(
id
-u
gitlab-runner
)
:
$(
id
-g
gitlab-runner
)
--volume
=
"
${
CI_PROJECT_DIR
}
/scripts/build.sh:/build.sh"
--volume
=
"
${
BEAT_CORE_TEST_DIR
}
/
${
algodir
}
:/sources"
--workdir
=
"/sources"
--entrypoint
=
"bash"
"
${
BEAT_CXX_DEV_ENVIRONMENT
}
"
/build.sh
done
fi
...
...
Write
Preview
Supports
Markdown
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