-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
64 lines (57 loc) · 1.41 KB
/
.gitlab-ci.yml
File metadata and controls
64 lines (57 loc) · 1.41 KB
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
stages:
- test
- deploy
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/archlinux:base-devel
test:
stage: test
tags:
- x86_64-linux-kvm-docker
script:
- pacman -Sy --noconfirm --needed dbus rust gsettings-desktop-schemas clang speech-dispatcher cargo-tarpaulin
- dbus-run-session cargo tarpaulin --out xml --engine llvm
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: cobertura.xml
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH
fmt:
stage: test
tags:
- x86_64-linux-kvm-docker
script:
- pacman -Sy --noconfirm --needed rust
- cargo fmt --check
clippy:
stage: test
tags:
- x86_64-linux-kvm-docker
script:
- pacman -Sy --noconfirm --needed rust clang speech-dispatcher
- cargo clippy -- -Dwarnings
proxy:
stage: test
tags:
- x86_64-linux-kvm-docker
script:
- pacman -Sy --noconfirm --needed rust git zbus_xmlgen
- cd steamos-manager-proxy/src
- ./update_proxy.sh
- git status
- git diff
- git diff-index --quiet HEAD
build:
stage: deploy
tags:
- x86_64-linux-kvm-docker
script:
- pacman -Sy --noconfirm --needed dbus rust gsettings-desktop-schemas clang speech-dispatcher
- make install DESTDIR=build
- tar --zstd -C build -cvf build.tar.zst .
artifacts:
paths:
- build.tar.zst