To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 39c96443 authored by Javad Ebrahimian Amiri's avatar Javad Ebrahimian Amiri
Browse files

update ci yml to support both release and debug

parent 7ffb8878
......@@ -7,44 +7,47 @@ stages:
before_script:
- export MU_ZEBU=$CI_PROJECT_DIR
- export ZEBU_BUILD=debug
- export ZEBU_CARGO_ARG=""
# - export ZEBU_CARGO="--release"
- export CARGO_HOME=.cargo
- export CC=clang
- export CXX=clang++
- export RUST_TEST_THREADS=1
- export LD_LIBRARY_PATH=$MU_ZEBU/target/$ZEBU_BUILD/deps/:$LD_LIBRARY_PATH
# - source /home/gitlab-runner/ci/bin/activate
- source /home/gitlab-runner/ci/bin/activate
build:
stage: build
script:
- rustc --version
- cargo clean
- time cargo test -j6 --release --no-run --color=always
# - time cargo test -j6 --release --no-run --color=always
- time cargo test -j6 $ZEBU_CARGO_ARG --no-run --color=always
artifacts:
paths:
- target/release/deps/libmu.so
- target/release/deps/libmu.a
- target/release/deps/lib-*
- target/$ZEBU_BUILD/deps/libmu.so
- target/$ZEBU_BUILD/deps/libmu.a
- target/$ZEBU_BUILD/deps/lib-*
test:cargo:api:
stage: test
script:
- cargo test test_api --release 2> /dev/null
- cargo test test_api $ZEBU_CARGO_ARG 2> /dev/null
test:cargo:ir:
stage: test
script:
- cargo test test_ir --release 2> /dev/null
- cargo test test_ir $ZEBU_CARGO_ARG 2> /dev/null
test:cargo:compiler:
stage: test
script:
- cargo test test_compiler --release 2> /dev/null
- cargo test test_compiler $ZEBU_CARGO_ARG 2> /dev/null
test:cargo:runtime:
stage: test
script:
- cargo test test_runtime --release 2> /dev/null
- cargo test test_runtime $ZEBU_CARGO_ARG 2> /dev/null
.build_muc: &build_muc |
if [ -d "tests/test_muc/mu-tool-compiler" ]; then rm -Rf tests/test_muc/mu-tool-compiler; fi
......@@ -54,7 +57,7 @@ test:cargo:runtime:
export ANTLR_HOME=/home/gitlab-runner/antlr4/runtime/Cpp/run
mkdir lib
cp -r $ANTLR_HOME/usr/local/lib/* $PWD/lib/
cp -r $MU_ZEBU/target/release/deps/* $PWD/lib/
cp -r $MU_ZEBU/target/$ZEBU_BUILD/deps/* $PWD/lib/
export CC=clang
export CXX=clang++
make
......@@ -160,7 +163,7 @@ testjit:som:
mubench:
stage: mubench
script:
- cp ./target/release/deps/libmu.so ./target/release/libmu.so
- cp ./target/$ZEBU_BUILD/deps/libmu.so ./target/$ZEBU_BUILD/libmu.so
- deactivate
- git clone https://gitlab.anu.edu.au/mu/mu-perf-benchmarks.git
- git clone https://gitlab.anu.edu.au/mu/mu-client-pypy.git
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment