Skip to content

Commit ab2ec4d

Browse files
authored
Migrate to Buildkite Config (#305)
* Initial buildkite config * Test just build * Fix interpolation issue * Change docker image * Change dockerfile * Add user * Add buildkite tests * Fix user * Combine build and test * Add Synk test * Add saucelabs * Add publish step and remove comments * Remove circleci-enterprise * Change npm context for read/write access
1 parent 67bb95a commit ab2ec4d

File tree

4 files changed

+45
-132
lines changed

4 files changed

+45
-132
lines changed

.buildkite/pipeline.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
env:
2+
SEGMENT_CONTEXTS: "snyk,aws-credentials,ecr,saucelabs,npm-publish"
3+
steps:
4+
- label: ":hammer: Build and Test"
5+
command:
6+
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
7+
- yarn install --frozen-lockfile
8+
- yarn lint
9+
- yarn test
10+
- yarn test:ci
11+
plugins:
12+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
13+
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
14+
paths: ["node_modules/"]
15+
s3_bucket_name: "segment-buildkite-cache"
16+
- docker#v3.3.0:
17+
image: 528451384384.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci
18+
user: root
19+
environment:
20+
- NPM_TOKEN
21+
- SAUCE_USERNAME
22+
- SAUCE_ACCESS_KEY
23+
24+
- wait: ~
25+
26+
- label: ":hammer: Synk Setup"
27+
plugins:
28+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
29+
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
30+
paths: ["node_modules/"]
31+
- ssh://[email protected]/segmentio/snyk-buildkite-plugin#v1.0.0:
32+
runtime: npm
33+
34+
- wait: ~
35+
36+
- label: ":cloud: Publish"
37+
branches: master
38+
commands:
39+
- yarn lerna publish from-package --yes
40+
plugins:
41+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
42+
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
43+
paths: ["node_modules/"]
44+
environment:
45+
- NPM_TOKEN

.circleci/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 109 deletions
This file was deleted.

.circleci/install-sc

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)