From f247a8facfad251309cb3a525838305ad32c78af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Tue, 26 Mar 2019 15:35:48 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 318a007..efb1317 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,14 +6,19 @@ image: "rust:latest" #- apt-get update -yqq #- apt-get install -yqq mingw-w64 -# Use cargo to test the project +stages: +- test +- build + test:cargo: + stage: test script: - rustc --version && cargo --version # Print version info for debugging - cargo test --all --verbose build:linux: + stage: build script: - cargo build --release artifacts: @@ -21,6 +26,7 @@ build:linux: - target/release/per build:windows: + stage: build script: - mkdir .cargo && echo -e "[target.x86_64-pc-windows-gnu]\nlinker = \"x86_64-w64-mingw32-gcc\"\nar = \"x86_64-w64-mingw32-gcc-ar\"" > .cargo/config - apt-get update -yqq