aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-16 19:41:55 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-16 19:41:55 -0700
commit57169bc0b332dfd891f3349a362a57ff71348ddd (patch)
tree25dad7fd0bcd60242130eebdd846e74a4f0045e4 /.gitlab-ci.yml
parenta3cf5f5fd003f8f54d163f3a185c3a9291d5632e (diff)
downloadfatcat-57169bc0b332dfd891f3349a362a57ff71348ddd.tar.gz
fatcat-57169bc0b332dfd891f3349a362a57ff71348ddd.zip
only build artifacts for tagged builds
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 11 insertions, 3 deletions
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