@@ -34,45 +34,65 @@ variables:
34
34
.docker-cache-status : &docker-cache-status
35
35
variables :
36
36
CARGO_HOME : " /ci-cache/parity-ethereum/cargo/${CI_JOB_NAME}"
37
+ dependencies : []
37
38
before_script :
38
- - SCCACHE_ERROR_LOG=/builds/parity/parity-ethereum/sccache_error.log RUST_LOG=sccache::server=debug sccache --start-server
39
+ - SCCACHE_ERROR_LOG=/builds/parity/parity-ethereum/sccache_debug.log
40
+ RUST_LOG=sccache=debug
41
+ sccache --start-server
39
42
- sccache -s
40
43
after_script :
41
- - echo "All crate-types:"
42
- - grep 'parse_arguments.*--crate-type' sccache_error.log | sed -re 's/.*"--crate-type", "([^"]+)".*/\1/' | sort | uniq -c
43
- - echo "Non-cacheable reasons:"
44
- - grep CannotCache sccache_error.log | sed -re 's/.*CannotCache\((.+)\).*/\1/' | sort | uniq -c
44
+ # sccache debug info
45
+ - if test -e sccache_debug.log;
46
+ then
47
+ echo "_____sccache_debug.log listing start:_____";
48
+ cat sccache_debug.log;
49
+ echo "_____sccache_debug.log listing end_____";
50
+ echo "All crate-types:";
51
+ grep 'parse_arguments.*--crate-type' sccache_debug.log | sed -re 's/.*"--crate-type", "([^"]+)".*/\1/' | sort | uniq -c;
52
+ echo "_____Non-cacheable reasons:_____";
53
+ grep CannotCache sccache_debug.log | sed -re 's/.*CannotCache\((.+)\).*/\1/' | sort | uniq -c;
54
+ else
55
+ echo "_____No logs from sccache_____";
56
+ exit 0;
57
+ fi
45
58
tags :
46
59
- linux-docker
47
60
61
+ .build-on-linux : &build-on-linux
62
+ stage : build
63
+ << : *docker-cache-status
64
+ << : *collect_artifacts
65
+ script :
66
+ - scripts/gitlab/build-linux.sh
67
+ - sccache -s
68
+
48
69
49
70
cargo-check 0 3 :
50
71
stage : test
51
72
<< : *docker-cache-status
52
73
script :
53
- - time cargo check --target $CARGO_TARGET --locked --no-default-features
74
+ - time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
54
75
- sccache -s
55
76
56
77
cargo-check 1 3 :
57
78
stage : test
58
79
<< : *docker-cache-status
59
80
script :
60
- - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features
81
+ - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always
61
82
- sccache -s
62
83
63
84
cargo-check 2 3 :
64
85
stage : test
65
86
<< : *docker-cache-status
66
87
script :
67
- - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio"
88
+ - time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always
68
89
- sccache -s
69
90
70
91
cargo-audit :
71
92
stage : test
72
93
<< : *docker-cache-status
73
94
script :
74
95
- cargo audit
75
- - sccache -s
76
96
77
97
validate-chainspecs :
78
98
stage : test
@@ -92,55 +112,64 @@ test-linux:
92
112
stage : build
93
113
<< : *docker-cache-status
94
114
script :
95
- - ./scripts/gitlab/test-linux.sh
115
+ - ./scripts/gitlab/test-linux.sh stable
96
116
- sccache -s
97
117
98
- build-android :
118
+ test-linux-beta :
99
119
stage : build
100
- image : parity/rust-parity-ethereum-android-build:stretch
101
- variables :
102
- CARGO_TARGET : armv7-linux-androideabi
120
+ only : *releaseable_branches
103
121
<< : *docker-cache-status
104
- << : *collect_artifacts
105
122
script :
106
- - scripts/gitlab/build-linux.sh
107
- tags :
108
- - linux-docker
123
+ - ./scripts/gitlab/test-linux.sh beta
124
+ - sccache -s
109
125
110
- build -linux: &build-linux
126
+ test -linux-nightly :
111
127
stage : build
112
128
only : *releaseable_branches
113
129
<< : *docker-cache-status
114
- << : *collect_artifacts
115
130
script :
116
- - scripts/gitlab/build -linux.sh
131
+ - ./ scripts/gitlab/test -linux.sh nightly
117
132
- sccache -s
133
+ allow_failure : true
134
+
135
+ build-android :
136
+ << : *build-on-linux
137
+ image : parity/rust-parity-ethereum-android-build:stretch
138
+ variables :
139
+ CARGO_TARGET : armv7-linux-androideabi
140
+
141
+ build-linux :
142
+ << : *build-on-linux
143
+ only : *releaseable_branches
118
144
119
145
build-linux-i386 :
120
- << : *build-linux
146
+ << : *build-on-linux
147
+ only : *releaseable_branches
121
148
image : parity/rust-parity-ethereum-build:i386
122
149
variables :
123
150
CARGO_TARGET : i686-unknown-linux-gnu
124
151
125
152
build-linux-arm64 :
126
- << : *build-linux
153
+ << : *build-on-linux
154
+ only : *releaseable_branches
127
155
image : parity/rust-parity-ethereum-build:arm64
128
156
variables :
129
157
CARGO_TARGET : aarch64-unknown-linux-gnu
130
158
131
159
build-linux-armhf :
132
- << : *build-linux
160
+ << : *build-on-linux
161
+ only : *releaseable_branches
133
162
image : parity/rust-parity-ethereum-build:armhf
134
163
variables :
135
164
CARGO_TARGET : armv7-unknown-linux-gnueabihf
136
165
137
166
build-darwin :
138
167
stage : build
139
- only : *releaseable_branches
140
168
<< : *collect_artifacts
169
+ only : *releaseable_branches
141
170
variables :
142
171
CARGO_TARGET : x86_64-apple-darwin
143
- CARGO_HOME : " ${CI_PROJECT_DIR}/.cargo"
172
+ CARGO_HOME : " ${CI_PROJECT_DIR}/.cargo"
144
173
CC : gcc
145
174
CXX : g++
146
175
script :
0 commit comments