-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
49 lines (42 loc) · 1.17 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
stages:
- test
- deploy
# rust-latest-test:
# stage: test
# image: rust:latest
# script:
# - cargo test --verbose
#
# rust-nightly-test:
# stage: test
# image: rustlang/rust:nightly
# script:
# - cargo test --verbose
pages:
stage: deploy
image: "rustdocker/rust:nightly"
script:
# Generate rust docs
- cargo doc
# Install cargo-tarpaulin
- curl -L https://github.com/xd009642/tarpaulin/releases/download/0.20.0/cargo-tarpaulin-0.20.0-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
# Generate coverage report, and panda docs
- cargo tarpaulin --out html xml -p bb_common -p bb_proxy -p bb_server
# Make our webpage
- mkdir -p public/
- rm -rf public/*
- mkdir -p public/doc/panda/ public/doc/rust
- cp -r bb_server/target/panda_docs/* public/doc/panda/
- cp -r target/doc/* public/doc/rust/
# Upload to codecov
- curl -Os https://uploader.codecov.io/v0.1.0_4653/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN}
artifacts:
paths:
- public
reports:
coverage_report:
coverage_format: cobertura
path: cobertura.xml
coverage: '/^\d+.\d+% coverage/'