From 898725a96a6fce41354426c77ac743be52c103ae Mon Sep 17 00:00:00 2001 From: Kai Kriegel Date: Thu, 17 Sep 2020 13:01:55 +0000 Subject: [PATCH 1/2] only run pipeline for master, develop branches and merge requests --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72aa360..618b990 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,10 @@ lint:clippy: script: - rustc --version && cargo --version # Print version info for debugging - cargo clippy -- -D warnings + only: + - master + - development + - merge_requests # Use rustfmt to check formating of the project lint:fmt: @@ -36,12 +40,20 @@ lint:fmt: script: - rustc --version && cargo --version # Print version info for debugging - cargo fmt -- --check # TODO: Do we want to enforce formating? + only: + - master + - development + - merge_requests # Use cargo to test the project test:cargo: script: - rustc --version && cargo --version # Print version info for debugging - cargo test --workspace --verbose + only: + - master + - development + - merge_requests # cache dependencies and build environment to speed up setup From b5bc8502071064c3f6434c3280b951003695fcf6 Mon Sep 17 00:00:00 2001 From: Kai Kriegel Date: Thu, 17 Sep 2020 13:07:04 +0000 Subject: [PATCH 2/2] don't try to build rust on windows --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 618b990..deaa054 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,9 @@ lint:clippy: - master - development - merge_requests + tags: + - linux + - docker # Use rustfmt to check formating of the project lint:fmt: @@ -44,6 +47,9 @@ lint:fmt: - master - development - merge_requests + tags: + - linux + - docker # Use cargo to test the project test:cargo: @@ -54,6 +60,9 @@ test:cargo: - master - development - merge_requests + tags: + - linux + - docker # cache dependencies and build environment to speed up setup