This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.gitlab-ci.yml
64 lines (58 loc) · 1.51 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
54
55
56
57
58
59
60
61
62
63
64
stages:
- test
- build
variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: 3
CARGO_INCREMENTAL: 0
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
CI_SERVER_NAME: "GitLab CI"
RUST_TOOLCHAIN: "stable"
.docker-env: &docker-env
image: paritytech/ci-linux:production
before_script:
- cargo -vV
- rustc -vV
- rustup show
- cargo --version
- sccache -s
dependencies: []
interruptible: true
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
tags:
- linux-docker
#### stage: test
test-rust-stable:
stage: test
<<: *docker-env
script:
- ./scripts/init.sh
- time cargo test --all --release --locked
- cd substrate && time cargo test --all --release --locked
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
#### stage: build
build-linux:
stage: build
<<: *docker-env
script:
- ./scripts/init.sh
- time cargo build --release
- cd substrate && time cargo build --release
- sccache -s
only:
- master
- tags
- web