Fix pipeline by passing llvm and qemu using artifacts
This commit is contained in:
parent
e70006b5e5
commit
c292c61da6
|
@ -35,9 +35,14 @@ prepare-cache:llvm:
|
||||||
- make -j5
|
- make -j5
|
||||||
- make -j5 install
|
- make -j5 install
|
||||||
cache:
|
cache:
|
||||||
key: llvm-HEAD
|
key: llvm-8x-HEAD
|
||||||
paths:
|
paths:
|
||||||
- $INSTALL_DIR
|
- $INSTALL_DIR
|
||||||
|
artifacts:
|
||||||
|
name: "llvm-8x-HEAD"
|
||||||
|
paths:
|
||||||
|
- $INSTALL_DIR
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
# Build racket with scan-build
|
# Build racket with scan-build
|
||||||
scan-build:racket:
|
scan-build:racket:
|
||||||
|
@ -55,14 +60,11 @@ scan-build:racket:
|
||||||
- export PATH=$INSTALL_DIR/bin:$PATH
|
- export PATH=$INSTALL_DIR/bin:$PATH
|
||||||
- export LD_LIBRARY_PATH=$INSTALL_DIR/bin:$LD_LIBRARY_PATH
|
- export LD_LIBRARY_PATH=$INSTALL_DIR/bin:$LD_LIBRARY_PATH
|
||||||
- scan-build -o scan-report_cc -analyzer-config 'crosscheck-with-z3=true' make PKGS="" CPUS=5 CONFIGURE_ARGS_qq='CFLAGS="-O0 -g -DMZ_DECLARE_NORETURN" --disable-strip'
|
- scan-build -o scan-report_cc -analyzer-config 'crosscheck-with-z3=true' make PKGS="" CPUS=5 CONFIGURE_ARGS_qq='CFLAGS="-O0 -g -DMZ_DECLARE_NORETURN" --disable-strip'
|
||||||
|
dependencies:
|
||||||
|
- prepare-cache:llvm
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- scan-report_cc/
|
- scan-report_cc/
|
||||||
cache:
|
|
||||||
key: llvm-HEAD
|
|
||||||
policy: pull
|
|
||||||
paths:
|
|
||||||
- $INSTALL_DIR
|
|
||||||
|
|
||||||
# Build racketcs with scan-build
|
# Build racketcs with scan-build
|
||||||
scan-build:racketcs:
|
scan-build:racketcs:
|
||||||
|
@ -80,14 +82,11 @@ scan-build:racketcs:
|
||||||
- export PATH=$INSTALL_DIR/bin:$PATH
|
- export PATH=$INSTALL_DIR/bin:$PATH
|
||||||
- export LD_LIBRARY_PATH=$INSTALL_DIR/bin:$LD_LIBRARY_PATH
|
- export LD_LIBRARY_PATH=$INSTALL_DIR/bin:$LD_LIBRARY_PATH
|
||||||
- scan-build -o scan-report-cs_cc -analyzer-config 'crosscheck-with-z3=true' make PKGS="" CPUS=5 CONFIGURE_ARGS_qq='CFLAGS="-O0 -g -DMZ_DECLARE_NORETURN" --disable-strip' cs
|
- scan-build -o scan-report-cs_cc -analyzer-config 'crosscheck-with-z3=true' make PKGS="" CPUS=5 CONFIGURE_ARGS_qq='CFLAGS="-O0 -g -DMZ_DECLARE_NORETURN" --disable-strip' cs
|
||||||
|
dependencies:
|
||||||
|
- prepare-cache:llvm
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- scan-report-cs_cc/
|
- scan-report-cs_cc/
|
||||||
cache:
|
|
||||||
key: llvm-HEAD
|
|
||||||
policy: pull
|
|
||||||
paths:
|
|
||||||
- $INSTALL_DIR
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------------------
|
||||||
##
|
##
|
||||||
|
@ -198,7 +197,12 @@ prepare-cache:qemu:
|
||||||
key: qemu-3.1.0
|
key: qemu-3.1.0
|
||||||
paths:
|
paths:
|
||||||
- $INSTALL_DIR
|
- $INSTALL_DIR
|
||||||
|
artifacts:
|
||||||
|
name: "qemu-3.1.0"
|
||||||
|
paths:
|
||||||
|
- $INSTALL_DIR
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
.preparearch:
|
.preparearch:
|
||||||
image: ubuntu:18.04
|
image: ubuntu:18.04
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -213,11 +217,8 @@ prepare-cache:qemu:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
script:
|
script:
|
||||||
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --with-qemu-path $INSTALL_DIR
|
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --with-qemu-path $INSTALL_DIR
|
||||||
cache:
|
dependencies:
|
||||||
key: qemu-3.1.0
|
- prepare-cache:qemu
|
||||||
policy: pull
|
|
||||||
paths:
|
|
||||||
- $INSTALL_DIR
|
|
||||||
|
|
||||||
test:x86_64:
|
test:x86_64:
|
||||||
extends: .preparearch
|
extends: .preparearch
|
||||||
|
@ -303,11 +304,9 @@ test:ppc64el:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
script:
|
script:
|
||||||
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --enable-cs --with-qemu-path $INSTALL_DIR
|
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --enable-cs --with-qemu-path $INSTALL_DIR
|
||||||
cache:
|
dependencies:
|
||||||
key: qemu-3.1.0
|
- prepare-cache:qemu
|
||||||
paths:
|
|
||||||
- $INSTALL_DIR
|
|
||||||
|
|
||||||
test:x86_64:cs:
|
test:x86_64:cs:
|
||||||
extends: .preparearch:cs
|
extends: .preparearch:cs
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user