-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathBUILD.yaml
49 lines (49 loc) · 1.2 KB
/
BUILD.yaml
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
packages:
- name: all
type: generic
deps:
- :lib
- components/gitpod-protocol/go:lib
- components/gitpod-protocol/java:lib
- name: lib
type: yarn
srcs:
- "data/*.json"
- "src/**"
- "test/**"
- .eslintrc
- mocha.opts
- package.json
config:
packaging: library
yarnLock: ${coreYarnLockBase}/yarn.lock
tsconfig: tsconfig.json
commands:
# leeway executes the build and test step in the wrong order, so we need to call a special script that builds before testing
test: ["yarn", "test:leeway"]
- name: gitpod-schema
type: generic
srcs:
- data/gitpod-schema.json
config:
commands:
- ["mv", "data/gitpod-schema.json", "gitpod-schema.json"]
- name: scripts
type: generic
srcs:
- "scripts/*"
config:
commands:
- ["sh", "-c", "mv scripts/* ."]
- name: publish
type: generic
env:
- DO_PUBLISH=${publishToNPM}
argdeps:
- npmPublishTrigger
deps:
- :lib
- :scripts
config:
commands:
- ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-gitpod-protocol--lib/package"]