-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
46 lines (39 loc) · 850 Bytes
/
.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
include:
- project: "devops/support"
ref: master
file:
- "includes/build/rust/crates-io-mirror.yml"
- "includes/docs/rustdoc.yml"
default:
tags:
- linux-docker
image: ${PLG_CI_DOCKER_TAG}/rusty-python:latest
stages:
- check
- build
- test
- deploy
fmt:
stage: check
script:
- cargo fmt -- --check
clippy:
stage: check
script:
- cargo clippy -- --deny warnings
- cargo clippy --tests -- --deny warnings
compile:
stage: build
script:
- cargo build --verbose
package:
stage: build
script:
- cargo package
runtests:
stage: test
script:
- cargo test --verbose -- --test-threads=1
- cargo build -p example-build-script -vv
- cargo build -p example-build-script -vv --release
- cargo run -p example-build-script