Skip to content
Snippets Groups Projects

Execute build and tests in all toolchains

Merged Éloïs requested to merge ci into dev
+ 39
4
@@ -6,26 +6,61 @@ stages:
@@ -6,26 +6,61 @@ stages:
before_script:
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- export PATH="$HOME/.cargo/bin:$PATH"
builds:
build:stable:
stage: builds
stage: builds
tags:
tags:
- redshift-rs
- redshift-rs-stable
script:
script:
- cargo build
- cargo build
 
 
tests:coverage:
 
stage: tests
 
tags:
 
- redshift-kcov-rs-stable
 
image: registry.duniter.org/docker/rust/kcov:v0.0.4
 
script:
 
- RUSTFLAGS="-C link-dead-code" cargo test --no-run
 
- kcov --exclude-pattern ".cargo" --include-path $(pwd) --verify target/cov target/debug/duniter_wotb-*
 
- kcov --exclude-pattern ".cargo" --include-path $(pwd) --verify target/cov target/debug/duniter_keys-*
 
- cat target/cov/index.json
 
allow_failure: true
tests:
tests:stable:
stage: tests
stage: tests
tags:
tags:
- redshift-rs
- redshift-rs-stable
script:
script:
- cargo test
- cargo test
 
build_and_tests:beta:
 
stage: tests
 
tags:
 
- redshift-rs-beta
 
script:
 
- rustup update
 
- cargo test
 
when: manual
 
allow_failure: true
 
 
build_and_tests:nightly:
 
stage: tests
 
tags:
 
- redshift-rs-nightly
 
script:
 
- rustup update
 
- cargo test
 
when: manual
 
allow_failure: true
 
fmt:
fmt:
stage: fmt
stage: fmt
tags:
tags:
- redshift-rs-nightly
- redshift-rs-nightly
before_script:
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- export PATH="$HOME/.cargo/bin:$PATH"
 
- rustup update
- cargo install --force rustfmt-nightly
- cargo install --force rustfmt-nightly
script:
script:
- cargo fmt -- --write-mode=diff
- cargo fmt -- --write-mode=diff
 
allow_failure: true
 
Loading