-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
53 lines (45 loc) · 1.01 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
50
51
52
53
variables:
RELEASE_NAME: "${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-g${CI_COMMIT_SHORT_SHA}-b${CI_PIPELINE_ID}"
include:
- project: "devops/support"
ref: master
file:
- "includes/build/rust/crates-io-mirror.yml"
- "includes/reports/cargo-junit.yml"
- "includes/docs/rustdoc.yml"
stages:
- check
- build
- test
- deploy
default:
tags:
- linux-docker
image: ${PLG_CI_DOCKER_TAG}/rusty-python:latest
fmt:
stage: check
script:
- cargo fmt -- --check
clippy:
stage: check
script:
- cargo clippy --tests -- --deny warnings
- cargo clippy --tests --no-default-features -- --deny warnings
compile:
stage: build
script:
- cargo build
- cargo build --no-default-features
package:
stage: build
script:
- cargo package
artifacts:
name: "${RELEASE_NAME}-package"
paths:
- target/package
runtests:
stage: test
script:
- cargo test
- cargo test --no-default-features