Skip to content

Commit

Permalink
added gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vOROn200 committed Jul 15, 2019
1 parent 8509f12 commit aeab762
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
stages:
- build
- tests

.rust-template: &rust-template
before_script:
- rustup --version
- rustc --version
- cargo --version
tags:
- franklin

compile:
image: 'registry.mattr.network/devops/images/rust_night'
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- target/
<<: *rust-template
stage: build
script:
- cargo fmt --all -- --check
- cargo build --verbose
only:
- master
- merge_requests

tests:
image: 'registry.mattr.network/devops/images/rust_night'
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- target/
policy: pull
<<: *rust-template
stage: tests
when: manual
script:
- cargo clippy --tests --benches -- -D warnings
- cargo test --verbose
only:
- master
- merge_requests

0 comments on commit aeab762

Please sign in to comment.