mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
ci: add Circle CI definition
Circle CI provides bare metal test systems which are a very good environment for the CRIU test cases. This adds two CI runs on Circle CI. On Circle CI it is necessary to tell clang to use '-Wl,-z,now', because gcc has it hard-coded in Ubuntu and clang does not. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
a719a2f49f
commit
70088b66c1
3 changed files with 34 additions and 7 deletions
|
|
@ -97,6 +97,12 @@ test_stream() {
|
|||
|
||||
ci_prep
|
||||
|
||||
if [ "$CLANG" = "1" ]; then
|
||||
# Needed for clang on Circle CI
|
||||
LDFLAGS="$LDFLAGS -Wl,-z,now"
|
||||
export LDFLAGS
|
||||
fi
|
||||
|
||||
export GCOV
|
||||
$CC --version
|
||||
time make CC="$CC" -j4
|
||||
|
|
@ -204,7 +210,7 @@ if [ -z "$SKIP_EXT_DEV_TEST" ]; then
|
|||
fi
|
||||
#make -C test/others/exec/ run
|
||||
make -C test/others/make/ run CC="$CC"
|
||||
if [ -n "$TRAVIS" ]; then
|
||||
if [ -n "$TRAVIS" ] || [ -n "$CIRCLECI" ]; then
|
||||
# GitHub Actions does not provide a real TTY and CRIU will fail with:
|
||||
# Error (criu/tty.c:1014): tty: Don't have tty to inherit session from, aborting
|
||||
make -C test/others/shell-job/ run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue