forked from segmentio/analytics.js-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
46 lines (43 loc) · 1.49 KB
/
pipeline.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
env:
SEGMENT_CONTEXTS: 'snyk,aws-credentials,ecr,saucelabs,npm-publish'
steps:
- label: ':hammer: Build and Test'
command:
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
- yarn install --frozen-lockfile
- yarn lint
- yarn test
- yarn test:ci
plugins:
- ssh://git@github.com/segmentio/cache-buildkite-plugin#v1.0.0:
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
paths: ['node_modules/']
s3_bucket_name: 'segment-buildkite-cache'
- docker#v3.3.0:
image: 528451384384.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci
user: root
environment:
- NPM_TOKEN
- SAUCE_USERNAME
- SAUCE_ACCESS_KEY
- label: ':hammer: Synk Setup'
plugins:
- ssh://git@github.com/segmentio/snyk-buildkite-plugin#v1.3.0:
runtime: npm
fail-on: upgradable
severity-threshold: high
- wait: ~
- label: ':cloud: Publish'
branches: master
commands:
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
- yarn lerna publish from-package --yes
plugins:
- ssh://git@github.com/segmentio/cache-buildkite-plugin#v1.0.0:
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
paths: ['node_modules/']
- docker#v3.3.0:
image: 528451384384.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci
user: root
environment:
- NPM_TOKEN