CI setup

parent 3429df84
Pipeline #69910391 canceled with stages
image: 'demilletech/rust:nightly'
.rust-template: &rust-template
variables:
GIT_SUBMODULE_STRATEGY: recursive
CARGO_HOME: $CI_PROJECT_DIR/cargo
CARGO_INCREMENTAL: 0
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads
before_script:
- rustc --version && cargo --version
cache:
paths:
- target/
- $CARGO_HOME
stages:
- build
- test
build:
<<: *rust-template
stage: build
script:
- curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
- cargo build --verbose --all
test:
<<: *rust-template
stage: test
script:
- cargo test --verbose --all
- |
zip -0 ccov.zip `find . \( -name "access-control*.gc*" \) -print`;
./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore-dir "/*" -o lcov.info;
bash <(curl -s https://codecov.io/bash) -f lcov.info;
\ No newline at end of file
......@@ -13,3 +13,4 @@ documentation = "https://docs.rs/access-control"
gitlab = { repository = "demilletech/access-control.rs" }
[dependencies]
gremlin-client = "0.2.0"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment