polyswarm / relay

Sidechain relay for PolySwarm, the first decentralized threat intelligence market.
https://polyswarm.io
GNU General Public License v3.0
2 stars 1 forks source link

Gitlab CI should show coverage information, unit test pass/failure, linting status, etc. #26

Closed zv closed 5 years ago

zv commented 6 years ago

Gitlab pipeline output showing this branch's run

When merging, ensure the CI badges have their branch-status-URIs updated from feature/coverage-tests to master

Resolves #18 Resolves #13

Caching

A CI pipeline run could be sped up considerably by caching intermediate crate build output. I tried introducing the following YAML anchor to rust-related stages but didn't appear to be successfully caching intermediate results.

At this point, I don't believe it is a profitable use of anyone's time to spend cycles on the issue, however it may be worth coming back to in the future.

.rust-defaults: &rust-defaults
  variables:
    CARGO_HOME: $CI_PROJECT_DIR/cargo
  before_script:
    # we only want to build crates for one rustc & we need nightly for instrumentation
    - rustup update nightly
    - rustup default nightly
    - rustc --version
    - cargo --version
  cache:
    paths:
      - target/
      - $CARGO_HOME