From abd8417761b15f20b76dc3f3e6c040d42b97e4ef Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 16 May 2018 19:12:30 -0700 Subject: more ambitious gitlab CI config --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 891e8e9f..02f1b781 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,25 @@ rust_build: image: "rust:1.26-stretch" + variables: + DATABASE_URL: "postgres://postgres@localhost/fatcat_test" services: - "postgres:9.6" before_script: - - cargo install diesel_cli + - cargo install diesel_cli --version 1.2 script: + - rustc --version && cargo --version && diesel --version - cd rust - - rustc --version && cargo --version + - diesel database reset && diesel migration run - cargo build + - cargo doc + - cargo test + - cargo build --release + artifacts: + paths: + - rust/target/release + - rust/target/doc + expire_in: 1 month python_unittest_and_lint: image: python:3.6-stretch -- cgit v1.2.3