-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
122 lines (108 loc) · 2.39 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: "recursive"
default:
before_script:
- |
set -euo pipefail
NIX_CONFIG_FILE=~/.config/nix/nix.conf
mkdir -p "$(dirname "$NIX_CONFIG_FILE")"
{
echo "access-tokens = ${CI_SERVER_HOST}=PAT:${CI_GROUP_TOKEN}"
} > "$NIX_CONFIG_FILE"
stages:
- lint
- build
- test
- deploy
lint:bash:
stage: lint
only:
- master
- merge_requests
script:
- nix develop .#devShells.x86_64-linux.default -c ./ci/lint/bash.sh
lint:nim:
stage: lint
only:
- master
- merge_requests
script:
- nix develop .#devShells.x86_64-linux.default -c ./ci/lint/nim.sh
lint:nix:
stage: lint
only:
- master
- merge_requests
script:
- nix develop .#devShells.x86_64-linux.default --command ./ci/lint/nix.sh
lint:rust:
stage: lint
only:
- master
- merge_requests
script:
- nix develop .#devShells.x86_64-linux.default -c ./ci/lint/rust.sh
lint:ui-tests:
stage: lint
only:
- master
- merge_requests
script:
- nix develop .#devShells.x86_64-linux.default -c ./ci/lint/ui-tests.sh
dev-build:
stage: build
only:
- master
- merge_requests
script:
- git clean -xfd
- nix develop .#devShells.x86_64-linux.default --command ./ci/build/dev.sh
resource_group: tup-build
nix-build:
stage: build
only:
- master
- merge_requests
script:
- git clean -xfd
- nix develop .#devShells.x86_64-linux.default --command ./ci/build/nix.sh
appimage-build:
stage: build
only:
- master
- merge_requests
script:
- git clean -xfd
- nix develop .#devShells.x86_64-linux.default --command ./ci/build/appimage.sh
#artifacts:
# paths:
# - CodeTracer.AppImage
test:rust:
stage: test
only:
- master
- merge_requests
script:
- nix develop .#devShells.x86_64-linux.default --command ./ci/test/rust.sh
test:ui-tests:
stage: test
only:
- master
- merge_requests
variables:
DISPLAY: ":99"
script:
- nix develop .#devShells.x86_64-linux.default --command ./ci/test/ui-tests.sh
push-to-cachix:
stage: deploy
only:
- master
script:
- nix develop .#devShells.x86_64-linux.default --command ./ci/deploy/build-nix-and-push-to-cachix.sh
build-and-deploy-docs:
stage: deploy
only:
- master
script:
- nix develop .#devShells.x86_64-linux.default --command ./ci/deploy/docs.sh