-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (60 loc) · 1.27 KB
/
.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
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (C) 2020 Casper Meijn <casper@meijn.net>
#
# SPDX-License-Identifier: CC0-1.0
stages:
- version
- build
- release
version:
stage: version
image: registry.gitlab.com/juhani/go-semrel-gitlab:v0.21.1
script:
- release next-version --allow-current > .next-version
- echo Next version is $(<.next-version)
artifacts:
paths:
- .next-version
build-rust-latest:
stage: build
image: rust:latest
before_script:
- apt update && apt install -y libsdl2-dev
- rustup component add rustfmt
script:
- cargo build --verbose
- cargo test --verbose
- cargo publish --dry-run --verbose
- cargo fmt -- --check
- cargo test version_number -- --ignored
reuse:
stage: build
image:
name: fsfe/reuse:latest
entrypoint: [""]
script:
- reuse lint
needs: []
conventional-commits:
stage: build
image: registry.gitlab.com/caspermeijn/docker-images/convco:latest
script:
- convco check
needs: []
release:
stage: release
image: registry.gitlab.com/juhani/go-semrel-gitlab:v0.21.1
script:
- release -v
- release tag
when: manual
only:
- master
deploy:
stage: release
image: rust
before_script:
- cargo login ${CARGO_REGISTRY_TOKEN}
script:
- cargo publish
only:
- tags