-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
88 lines (76 loc) · 1.59 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
image: node:latest
before_script:
- apt-get update -qq && apt-get install
variables:
NPM_TOKEN: undefined
stages:
- build
- test
# - publish
.yarn:
cache:
key:
files:
- yarn.lock
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- yarn install --frozen-lockfile --no-progress
build @censys/search:
extends: .yarn
stage: build
script:
- yarn workspace @censys/search run build
build @censys/asm:
extends: .yarn
stage: build
script:
- yarn workspace @censys/asm run build
lint:
extends: .yarn
stage: test
script:
- yarn run lint:ci
artifacts:
when: always
paths:
- eslint.xml
reports:
junit: eslint.xml
test @censys/search:
extends: .yarn
stage: test
script:
- yarn run test:search --ci
artifacts:
when: always
paths:
- packages/censys-search/junit.xml
reports:
junit: packages/censys-search/junit.xml
test @censys/asm:
extends: .yarn
stage: test
script:
- yarn run test:asm --ci
artifacts:
when: always
paths:
- packages/censys-asm/junit.xml
reports:
junit: packages/censys-asm/junit.xml
# .yarn-release:
# extends: .yarn
# stage: publish
# variables:
# NPM_TOKEN: $NODE_AUTH_TOKEN
# release @censys/search:
# extends: .yarn-release
# script:
# - yarn workspace @censys/search publish --non-interactive
# release @censys/asm:
# extends: .yarn-release
# script:
# - yarn workspace @censys/asm publish --non-interactive