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: ...@@ -8,6 +8,7 @@ before_script:
- export MU_ZEBU=$CI_PROJECT_DIR - export MU_ZEBU=$CI_PROJECT_DIR
- export ZEBU_BUILD=release - export ZEBU_BUILD=release
- export ZEBU_CARGO_ARG="--release" - export ZEBU_CARGO_ARG="--release"
- export RUST_PREFIX="rustup run 1.35.0-x86_64-unknown-linux-gnu"
- export CARGO_HOME=.cargo - export CARGO_HOME=.cargo
- export CC=clang - export CC=clang
- export CXX=clang++ - export CXX=clang++
...@@ -19,9 +20,9 @@ before_script: ...@@ -19,9 +20,9 @@ before_script:
build: build:
stage: build stage: build
script: script:
- rustc --version - RUST_PREFIX rustc --version
- cargo clean - RUST_PREFIX cargo clean
- time cargo test -j6 $ZEBU_CARGO_ARG --no-run --color=always - time RUST_PREFIX cargo test -j6 $ZEBU_CARGO_ARG --no-run --color=always
artifacts: artifacts:
paths: paths:
- target/debug/deps/libmu.so - target/debug/deps/libmu.so
...@@ -34,22 +35,22 @@ build: ...@@ -34,22 +35,22 @@ build:
test:cargo:api: test:cargo:api:
stage: test stage: test
script: 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: test:cargo:ir:
stage: test stage: test
script: 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: test:cargo:compiler:
stage: test stage: test
script: 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: test:cargo:runtime:
stage: test stage: test
script: 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 | .build_muc: &build_muc |
if [ -d "tests/test_muc/mu-tool-compiler" ]; then rm -Rf tests/test_muc/mu-tool-compiler; fi if [ -d "tests/test_muc/mu-tool-compiler" ]; then rm -Rf tests/test_muc/mu-tool-compiler; fi
...@@ -184,5 +185,5 @@ mubench: ...@@ -184,5 +185,5 @@ mubench:
rustfmt: rustfmt:
stage: rustfmt stage: rustfmt
script: 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 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