Update .gitlab-ci.yml

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