-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
66 lines (59 loc) · 1.53 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- check
- build
- release
image: registry.gitlab.com/matrixai/engineering/maintenance/gitlab-runner
lint:
stage: check
interruptible: true
script:
- >
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
npm install;
npm run lint;
'
test:
stage: check
interruptible: true
script:
- >
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
npm install;
npm run test;
'
nix-dry:
stage: check
interruptible: true
script:
- nix-build -v -v --dry-run ./release.nix --attr application
- nix-build -v -v --dry-run ./release.nix --attr docker
- nix-build -v -v --dry-run ./release.nix --attr package.linux.x64.deb
- nix-build -v -v --dry-run ./release.nix --attr package.linux.ia32.deb
- nix-build -v -v --dry-run ./release.nix --attr package.windows.x64.exe
- nix-build -v -v --dry-run ./release.nix --attr package.windows.ia32.exe
- nix-build -v -v --dry-run ./release.nix --attr package.darwin.x64.zip
nix:
interruptible: true
stage: build
script:
- >
nix-build ./release.nix
--attr application
--attr docker
only:
- master
packages:
interruptible: true
stage: release
script:
- >
nix-build ./release.nix
--attr package.linux.x64.deb
--attr package.linux.ia32.deb
--attr package.windows.x64.exe
--attr package.windows.ia32.exe
--attr package.darwin.x64.zip
only:
- master