burritos/.gitlab-ci.yml
François Autin 45647a784c
UPDATING APT
2023-04-04 15:05:45 +02:00

39 lines
847 B
YAML

default:
image: rust:1.68
before_script:
- wget -q https://cloud.cuwott.fr/s/9fyrejDxMdNRQNn/download/riscv64-cross-compiler-multilib.tar.gz
- mkdir /opt/riscv
- tar xzf riscv64-cross-compiler-multilib.tar.gz -C /opt/riscv
- apt update
- apt install glibc
stages:
- test
unit-test-job:
stage: test
script:
- echo "Running unit tests..."
- cargo test
unsafe-test-job:
stage: test
script:
- echo "Checking if List is still safe"
- rustup +nightly component add miri
- export MIRIFLAGS="-Zmiri-disable-isolation"
- cargo +nightly miri test utility::list::test
only:
changes:
- "src/utility/list.rs"
lint-test-job:
only:
refs:
- merge_requests
stage: test
script:
- echo "Linting code..."
- rustup component add clippy
- cargo clippy -- -D warnings