2023-03-08 13:45:36 +01:00
|
|
|
default:
|
2023-03-23 16:17:23 +01:00
|
|
|
image: rust:1.68
|
2023-04-04 14:35:33 +02:00
|
|
|
before_script:
|
2023-04-04 14:41:14 +02:00
|
|
|
- wget -q https://cloud.cuwott.fr/s/9fyrejDxMdNRQNn/download/riscv64-cross-compiler-multilib.tar.gz
|
2023-04-04 14:54:28 +02:00
|
|
|
- mkdir /opt/riscv
|
|
|
|
- tar xzf riscv64-cross-compiler-multilib.tar.gz -C /opt/riscv
|
2023-03-08 13:42:20 +01:00
|
|
|
|
2023-03-08 13:45:36 +01:00
|
|
|
stages:
|
2023-03-08 13:42:20 +01:00
|
|
|
- test
|
|
|
|
|
2023-03-08 13:45:36 +01:00
|
|
|
unit-test-job:
|
|
|
|
stage: test
|
2023-03-08 13:42:20 +01:00
|
|
|
script:
|
|
|
|
- echo "Running unit tests..."
|
|
|
|
- cargo test
|
|
|
|
|
2023-03-22 15:18:20 +01:00
|
|
|
unsafe-test-job:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- echo "Checking if List is still safe"
|
|
|
|
- rustup +nightly component add miri
|
|
|
|
- export MIRIFLAGS="-Zmiri-disable-isolation"
|
2023-03-22 15:47:56 +01:00
|
|
|
- cargo +nightly miri test utility::list::test
|
2023-03-22 15:18:20 +01:00
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- "src/utility/list.rs"
|
|
|
|
|
2023-03-08 13:45:36 +01:00
|
|
|
lint-test-job:
|
2023-03-10 11:12:49 +01:00
|
|
|
only:
|
2023-03-22 15:18:20 +01:00
|
|
|
refs:
|
|
|
|
- merge_requests
|
2023-03-08 13:45:36 +01:00
|
|
|
stage: test
|
2023-03-08 13:42:20 +01:00
|
|
|
script:
|
2023-03-10 11:12:49 +01:00
|
|
|
- echo "Linting code..."
|
2023-03-23 16:17:23 +01:00
|
|
|
- rustup component add clippy
|
|
|
|
- cargo clippy -- -D warnings
|