CI: Add automated test coverage reports. (#276)

* initial save state, need to experiment [ skip ci]

* try config

* more vars

* not that long URL

* json is not a host

* travis has to go

* canonic way of reporting

* coveralls+ way of reporting

* nightly explicitly

* tests with for cycle

* meant to compare coverages from loop and --workspace

* Update .gitlab-ci.yml

Co-Authored-By: Hero Bird <robin.freyler@gmail.com>

* test (ci): codecov with --workspace

* test (ci):

* test (ci): comparing test runs

* test (ci): old hack conflicts with a new one

* test (ci): -Zno-landing-pads caused test failures

* test (ci): try with cache

* test (ci): no cache and zip with tar

* test (ci): return to zip

* test (ci): no target caching, no release

* test (ci): better report

* test (ci): target dir var, cleanup after

* test (ci): final version

* test (ci): restore CI config

* change (ci): code coverage with grcov -> coveralls

* doc (ci): cleaner comments

* Update .gitlab-ci.yml

Co-Authored-By: Hero Bird <robin.freyler@gmail.com>

* Update .gitlab-ci.yml

Co-Authored-By: Hero Bird <robin.freyler@gmail.com>

* Update .gitlab-ci.yml

Co-Authored-By: Hero Bird <robin.freyler@gmail.com>

* Update .gitlab-ci.yml

Co-Authored-By: Hero Bird <robin.freyler@gmail.com>

Co-authored-by: Hero Bird <robin.freyler@gmail.com>
16 jobs for master in 6 minutes and 23 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Check
passed #486059
linux-docker
check-std

00:01:35

passed #486060
linux-docker
check-wasm

00:01:29

 
  Workspace
passed #486061
linux-docker
build-std

00:01:49

passed #486062
linux-docker
build-wasm

00:02:03

passed #486065
linux-docker
clippy-std

00:01:23

passed #486066
linux-docker
clippy-wasm

00:01:28

passed #486064
linux-docker
codecov

00:04:45

passed #486067
linux-docker
fmt

00:00:22

failed #486063
linux-docker
test

00:00:18

 
  Examples
skipped #486070
linux-docker
examples-clippy-std
skipped #486071
linux-docker
examples-clippy-wasm
skipped #486072
linux-docker
examples-contract-build
skipped #486069
linux-docker
examples-fmt
skipped #486073
linux-docker
examples-generate-metadata
skipped #486068
linux-docker
examples-test
 
  Publish
skipped #486074
linux-docker
publish-docs
 
Name Stage Failure
failed
test Workspace
error: could not compile `smallvec`.

Caused by:
process didn't exit successfully: `sccache rustc --crate-name smallvec --edition=2018 /ci-cache/ink/cargo/test/registry/src/github.com-1ecc6299db9ec823/smallvec-1.4.0/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="union"' -C metadata=2d8f59bf67514057 -C extra-filename=-2d8f59bf67514057 --out-dir /ci-cache/ink/targets/master/test/release/deps -L dependency=/ci-cache/ink/targets/master/test/release/deps --cap-lints allow -C link-dead-code` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1