diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 19:12:30 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 19:12:30 -0700 |
commit | abd8417761b15f20b76dc3f3e6c040d42b97e4ef (patch) | |
tree | b7cec29ca37c8c67b4b9df7c2b2865a49dc30486 | |
parent | bc345c8c7aeb1dbe045b384c4ee25623ac40095d (diff) | |
download | fatcat-abd8417761b15f20b76dc3f3e6c040d42b97e4ef.tar.gz fatcat-abd8417761b15f20b76dc3f3e6c040d42b97e4ef.zip |
more ambitious gitlab CI config
-rw-r--r-- | .gitlab-ci.yml | 15 |
1 files 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 |