From beacc3b5a96fde7f59cebb7185f19e4ee7720ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Wi=C3=9Fmann?= <edu@thorsten-wissmann.de> Date: Wed, 28 Nov 2018 16:35:12 +0100 Subject: [PATCH] Build artifacts only in master --- .gitlab-ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3f7301..5cebca0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,13 +9,20 @@ cache: paths: - .stack-root/ +test_branch: + script: + - stack --no-terminal --system-ghc --no-install-ghc --resolver lts-12.14 build --test --haddock --no-haddock-deps --bench --no-run-benchmarks + except: + - master + test: script: - stack --no-terminal --system-ghc --no-install-ghc --resolver lts-12.14 build --copy-bins --test --haddock --no-haddock-deps --bench --no-run-benchmarks - cp -r ~/.local/bin/ copar-linux-binaries + only: + - master artifacts: name: "${CI_PROJECT_NAME}-linux-binaries" expire_in: 10 yrs paths: - - copar-linux-binaries/ - + - copar-linux-binaries/ -- GitLab