Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit 72c93ab

Browse files
authored
Merge pull request #20 from paritytech/ci-add-gitlab
ci: add .gitlab-ci.yml
2 parents 20d11b0 + 5fbb1fc commit 72c93ab

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

.gitlab-ci.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+

0 commit comments

Comments
 (0)