-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildkite.yml
44 lines (41 loc) · 1.3 KB
/
buildkite.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
steps:
- label: ":mocha: Testing"
commands:
- "echo '--- Setting up'"
- "mkdir -p /test"
- "cp -R . /test"
- "cd /test"
- "cp .yarnrc.internal.yml ~/.yarnrc.yml"
- "echo '--- Installing Packages'"
- "yarn install --immutable"
- "echo '+++ Running Tests'"
- "yarn test"
plugins:
- docker#v3.7.0:
image: "node:lts"
propagate-environment: true
- wait
- label: ":npm: Building and Publishing Module"
commands:
- "echo '--- Setting up'"
- "mkdir -p /build"
- "cp -R . /build"
- "cd /build"
- "cp .yarnrc.internal.yml ~/.yarnrc.yml"
- "echo '--- Installing Packages'"
- "yarn install --immutable"
- "echo '+++ Publishing Internally'"
- "yarn npm publish --tolerate-republish"
- "echo '+++ Publishing Externally'"
- "cp .yarnrc.external.yml ~/.yarnrc.yml"
- "yarn npm publish --tolerate-republish --access public"
plugins:
- docker#v3.7.0:
image: "node:lts"
propagate-environment: true
if: build.branch == "master"
- label: ":github: Pushing to GitHub"
commands:
- "git remote add gh git@github.com:zensors/sheriff.git || true"
- "git push gh HEAD:refs/heads/${BUILDKITE_BRANCH}"
if: "build.branch !~ /^refs/"