File tree Expand file tree Collapse file tree 1 file changed +41
-22
lines changed Expand file tree Collapse file tree 1 file changed +41
-22
lines changed Original file line number Diff line number Diff line change 1
1
stages :
2
2
- checkstyle
3
3
- test
4
+ variables : &default-vars
5
+ GIT_STRATEGY : fetch
6
+ GIT_DEPTH : 100
7
+ CARGO_INCREMENTAL : 0
4
8
5
- .test_and_build : &test_and_build
9
+ .test_and_build : &test_and_build
6
10
script :
7
11
- cargo build --all
8
12
- cargo test --all
@@ -16,37 +20,52 @@ stages:
16
20
- web
17
21
- /^[0-9]+$/
18
22
23
+ .docker-env : &docker-env
24
+ image : paritytech/ci-linux:production
25
+ before_script :
26
+ - rustup show
27
+ - cargo --version
28
+ - sccache -s
29
+ variables :
30
+ << : *default-vars
31
+ CARGO_TARGET_DIR : " /ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
32
+ retry :
33
+ max : 2
34
+ when :
35
+ - runner_system_failure
36
+ - unknown_failure
37
+ - api_failure
38
+ interruptible : true
39
+ tags :
40
+ - linux-docker
41
+
42
+ # check style
43
+ checkstyle-linux-stable :
44
+ stage : checkstyle
45
+ << : *only
46
+ << : *docker-env
47
+ script :
48
+ - rustup component add rustfmt
49
+ - cargo fmt --all -- --check
50
+ allow_failure : true
51
+
19
52
# test rust stable
20
53
test-linux-stable :
21
- image : parity/rust-builder:latest
22
54
stage : test
23
- << : *test_and_build
24
- << : *only
25
- tags :
26
- - linux-docker
55
+ << : *docker-env
56
+ << : *only
57
+ << : *test_and_build
27
58
28
59
test-windows-stable :
29
60
stage : test
30
- << : *test_and_build
31
- << : *only
61
+ << : *test_and_build
62
+ << : *only
32
63
tags :
33
64
- rust-windows
34
65
35
66
test-mac-stable :
36
67
stage : test
37
- << : *test_and_build
38
- << : *only
68
+ << : *test_and_build
69
+ << : *only
39
70
tags :
40
71
- osx
41
-
42
- # check style
43
- checkstyle-linux-stable :
44
- image : parity/rust-builder:latest
45
- stage : checkstyle
46
- script :
47
- - rustup component add rustfmt
48
- - cargo fmt --all -- --check
49
- allow_failure : true
50
- << : *only
51
- tags :
52
- - linux-docker
You can’t perform that action at this time.
0 commit comments