-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (48 loc) · 824 Bytes
/
.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
default:
image:
name: rust:1.42.0
tags:
- shared-exec-docker
stages:
- assets
- test
- publish
yarn:
stage: assets
image: node:alpine
script:
- yarn install --modules-folder assets/web/vendor
artifacts:
expire_in: 1 hour
paths:
- assets/web/vendor
cargo fmt:
stage: test
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
cargo test:
stage: test
script:
- cargo test
compile:
stage: test
script:
- cargo build
publish dry run:
stage: test
image: rust
before_script:
- cargo login $CRATES_IO_TOKEN
script:
- cargo publish --dry-run --allow-dirty
crates.io:
stage: publish
before_script:
- cargo login $CRATES_IO_TOKEN
script:
- cargo publish --allow-dirty
only:
refs:
- master