This repository was archived by the owner on Feb 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ # .gitlab-ci.yml
2
+ # rust-secp256k1
3
+
4
+
5
+ stages :
6
+ - test
7
+ - build
8
+
9
+
10
+
11
+ image : parity/rust-builder:latest
12
+
13
+ variables :
14
+ GIT_STRATEGY : fetch
15
+ CARGO_HOME : " /ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
16
+ SCCACHE_DIR : " /ci-cache/${CI_PROJECT_NAME}/sccache"
17
+ CI_SERVER_NAME : " GitLab CI"
18
+ DOCKER_OS : " debian:stretch"
19
+ ARCH : " x86_64"
20
+
21
+
22
+
23
+ .docker-env : &docker-env
24
+ tags :
25
+ - linux-docker
26
+
27
+ .compiler_info : &compiler_info
28
+ before_script :
29
+ - rustup show
30
+ - cargo --version
31
+ - sccache -s
32
+
33
+ .build-refs : &build-refs
34
+ only :
35
+ - master
36
+ - schedules
37
+ - web
38
+ - /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
39
+
40
+ .test-refs : &test-refs
41
+ only :
42
+ - master
43
+ - schedules
44
+ - web
45
+ - /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
46
+ - /^[0-9]+$/
47
+
48
+
49
+
50
+
51
+
52
+ test-linux-stable : &test
53
+ stage : test
54
+ << : *test-refs
55
+ << : *docker-env
56
+ << : *compiler_info
57
+ variables :
58
+ RUST_TOOLCHAIN : stable
59
+ RUSTFLAGS : -Cdebug-assertions=y
60
+ TARGET : native
61
+ script :
62
+ - time cargo test --all --release --verbose
63
+ - sccache -s
64
+
65
+
66
+
67
+
68
+ build-linux-release : &build
69
+ stage : build
70
+ << : *build-refs
71
+ << : *docker-env
72
+ << : *compiler_info
73
+ script :
74
+ - time cargo build --release --verbose
75
+ - sccache -s
76
+
77
+
78
+
You can’t perform that action at this time.
0 commit comments