-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
88 lines (77 loc) · 1.51 KB
/
.gitlab-ci.yml
File metadata and controls
88 lines (77 loc) · 1.51 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
stages:
- lint
- test
- build
variables:
GIT_DEPTH: '1'
GIT_SUBMODULE_STRATEGY: 'none'
FF_USE_FASTZIP: 'true'
image:
name: nixos/nix
before_script:
# https://stackoverflow.com/a/58454193/18355339
- nix-env -f shell.nix -i -A buildInputs
- npm ci
extract-data-test-job:
cache:
- paths:
- test-data
stage: test
tags:
- big
script:
- export GOGC=20 # makes Go GC grow space by 20% increments, instead of 100% (the default)
- npm run build parseAll
extract-data-test-job-no-poppler-compat:
cache:
- paths:
- test-data
stage: test
tags:
- big
script:
- export GOGC=20 # makes Go GC grow space by 20% increments, instead of 100% (the default)
- export DISABLE_STRICT_POPPLER_COMPAT=t
- npm run build parseAll
extract-data-test-job-wasm:
cache:
- paths:
- test-data
stage: test
tags:
- big
script:
- export GOGC=20 # makes Go GC grow space by 20% increments, instead of 100% (the default)
- export USE_WASM=t
- npm run build parseAll
unit-test-job:
tags:
- big
stage: test
script:
- npm run build
- npm test
typecheck-lint-job:
stage: lint
script:
- npm run typecheck
tslint-lint-job:
stage: lint
script:
- npm run tslint
prettier-lint-job:
stage: lint
script:
- npm run prettier -- -c
demo-build-job:
stage: build
script:
- npm run build
- cd demo
- npm ci
- npm run build
artifacts:
paths:
- demo/dist
expose_as: demo
expire_in: 1 week