From ce9f699f8fbccf3bae90ded7613c74ed239200a7 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Tue, 17 Sep 2024 22:54:17 +0200 Subject: [PATCH] Add unit tests to CI. --- .gitlab-ci.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d3e83c3d3..462be0e0fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,35 +8,36 @@ before_script: - rustup component add rust-src stages: - - build - - # TODO? - # - test + - host + # TODO: redoxer test + # TODO: benchmarks and profiling (maybe manually enabled for relevant MRs)? build:x86_64: - stage: build + stage: host script: - mkdir -p target/x86_64 - make ARCH=x86_64 BUILD=target/x86_64 build:i686: - stage: build + stage: host script: - mkdir -p target/i686 - make ARCH=i686 BUILD=target/i686 build:aarch64: - stage: build + stage: host script: - mkdir -p target/aarch64 # TODO: cross compiler binutils? - make target/aarch64/kernel.all ARCH=aarch64 BUILD=target/aarch64 fmt: - stage: build - needs: [] - script: - - rustup component add rustfmt-preview - - cargo fmt -- --check + stage: host + script: + - rustup component add rustfmt-preview + - cargo fmt -- --check -# TODO: unit tests +unit_test: + stage: host + script: + - cargo test