Commit e04fe782 authored by John Zhang's avatar John Zhang

set CARGO_HOME to be under project directory

parent 2138ce2e
...@@ -25,7 +25,7 @@ stages: ...@@ -25,7 +25,7 @@ stages:
build_test: build_test:
stage: build stage: build
script: script:
- RUST_BACKTRACE=1 cargo test --no-run - CARGO_HOME=.cargo RUST_BACKTRACE=1 CC=clang cargo test --no-run
artifacts: artifacts:
untracked: true untracked: true
...@@ -34,32 +34,28 @@ test:cargo:api: ...@@ -34,32 +34,28 @@ test:cargo:api:
dependencies: dependencies:
- build_test - build_test
script: script:
- ls -al target - CARGO_HOME=.cargo RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_api
- RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_api
test:cargo:ir: test:cargo:ir:
stage: test stage: test
dependencies: dependencies:
- build_test - build_test
script: script:
- ls -al target - CARGO_HOME=.cargo RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_ir
- RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_ir
test:cargo:compiler: test:cargo:compiler:
stage: test stage: test
dependencies: dependencies:
- build_test - build_test
script: script:
- ls -al target - CARGO_HOME=.cargo RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_compiler
- RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_compiler
test:cargo:runtime: test:cargo:runtime:
stage: test stage: test
dependencies: dependencies:
- build_test - build_test
script: script:
- ls -al target - CARGO_HOME=.cargo RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_runtime
- RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CC=clang cargo test test_runtime
testjit:milestones: testjit:milestones:
stage: test stage: test
......
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