From 57169bc0b332dfd891f3349a362a57ff71348ddd Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 16 May 2018 19:41:55 -0700 Subject: only build artifacts for tagged builds --- .gitlab-ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 765c5a27..5d14299a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ -rust_build: +rust_test: image: "rust:1.26-stretch" variables: DATABASE_URL: "postgres://postgres@localhost/fatcat_test" @@ -12,9 +12,17 @@ rust_build: - cd rust - diesel database reset && diesel migration run - cargo build - - cargo doc - cargo test + +rust_build_release: + only: + - tags # doesn't build for most commits; only tagged + image: "rust:1.26-stretch" + script: + - rustc --version && cargo --version + - cd rust - cargo build --release + - cargo doc artifacts: paths: - rust/target/release/fatcat* @@ -23,7 +31,7 @@ rust_build: - rust/target/doc/*.js - rust/target/doc/*.woff - rust/target/doc/*.svg - expire_in: 1 month + expire_in: 1 year python_unittest_and_lint: image: python:3.6-stretch -- cgit v1.2.3