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

Commit 65f52016 authored by Javad Ebrahimian Amiri's avatar Javad Ebrahimian Amiri
Browse files

Update .gitlab-ci.yml

parent 3b4708dc
......@@ -8,6 +8,7 @@ before_script:
- export MU_ZEBU=$CI_PROJECT_DIR
- export ZEBU_BUILD=release
- export ZEBU_CARGO_ARG="--release"
- export RUST_PREFIX="rustup run 1.35.0-x86_64-unknown-linux-gnu"
- export CARGO_HOME=.cargo
- export CC=clang
- export CXX=clang++
......@@ -19,9 +20,9 @@ before_script:
build:
stage: build
script:
- rustc --version
- cargo clean
- time cargo test -j6 $ZEBU_CARGO_ARG --no-run --color=always
- RUST_PREFIX rustc --version
- RUST_PREFIX cargo clean
- time RUST_PREFIX cargo test -j6 $ZEBU_CARGO_ARG --no-run --color=always
artifacts:
paths:
- target/debug/deps/libmu.so
......@@ -34,22 +35,22 @@ build:
test:cargo:api:
stage: test
script:
- cargo test test_api $ZEBU_CARGO_ARG 2> /dev/null
- RUST_PREFIX cargo test test_api $ZEBU_CARGO_ARG 2> /dev/null
test:cargo:ir:
stage: test
script:
- cargo test test_ir $ZEBU_CARGO_ARG 2> /dev/null
- RUST_PREFIX cargo test test_ir $ZEBU_CARGO_ARG 2> /dev/null
test:cargo:compiler:
stage: test
script:
- cargo test test_compiler $ZEBU_CARGO_ARG 2> /dev/null
- RUST_PREFIX cargo test test_compiler $ZEBU_CARGO_ARG 2> /dev/null
test:cargo:runtime:
stage: test
script:
- cargo test test_runtime $ZEBU_CARGO_ARG 2> /dev/null
- RUST_PREFIX 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
......@@ -184,5 +185,5 @@ mubench:
rustfmt:
stage: rustfmt
script:
- cargo-fmt -- --check --verbose -- src/lib.rs src/ast/src/lib.rs src/gc/src/lib.rs src/utils/src/lib.rs
- RUST_PREFIX cargo-fmt -- --check --verbose -- src/lib.rs src/ast/src/lib.rs src/gc/src/lib.rs src/utils/src/lib.rs
allow_failure: true
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