From f0450a4564cb23277d1447938342d0017459d441 Mon Sep 17 00:00:00 2001 From: SamwiseFilmore Date: Mon, 2 Jul 2018 18:32:30 +0000 Subject: [PATCH] Gitlab CI --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..4a05a47526 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +image: "redoxos/redox" + +stages: + - build + - test + +before_script: + - rustup target add x86_64-unknown-redox --toolchain nightly + - rustup show # Print version info for debugging + +cache: + paths: + - target/ + +build:linux:cargo: + stage: build + script: cargo +nightly build --verbose + +build:redox:cargo: + stage: build + script: + - mkdir .cargo + - echo -e "[target.x86_64-unknown-redox]\nlinker = \"x86_64-unknown-redox-gcc\"" > .cargo/config + - cargo +nightly build --verbose --target x86_64-unknown-redox + +test:linux:cargo: + stage: test + dependencies: + - build:linux:cargo + script: cargo +nightly test --verbose + +# TODO: Set up a docker image with a redox vm that would allow to +# run things like tests under redox