From b911a76de4be65f6e2f0dcf3a7c5614e339f1d78 Mon Sep 17 00:00:00 2001 From: SamwiseFilmore <mggmugginsmc@gmail.com> Date: Sat, 30 Jun 2018 21:01:12 +0000 Subject: [PATCH] Stage and Cache build --- .gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e38d1329..9ee46683 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,27 +1,37 @@ -image: "rust:latest" +image: "rustlang/rust:nightly" + +stages: + - build + - test before_script: - git submodule update --init --recursive - - rustup toolchain add nightly - rustup target add x86_64-unknown-redox --toolchain nightly - rustup show # Print version info for debugging +cache: + untracked: true + build:linux: + stage: build script: - make all #build:redox: +# stage: build # script: # - make all test:linux: + stage: test + dependencies: + - build:linux script: - make test fmt: + stage: test script: - rustup component add rustfmt-preview - ./fmt.sh -- --check - -# TODO: Set up a docker image with a redox vm that would allow to -# run things like tests under redox + allow_failure: true -- GitLab