Skip to content

Commit 74e7bbb

Browse files
committed
Use circleci for CI
1 parent ff4ff55 commit 74e7bbb

2 files changed

Lines changed: 59 additions & 70 deletions

File tree

.circleci/config.yml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ commands:
3636
- run:
3737
name: Install dependencies
3838
command: yarn install
39+
- run: yarn node-test-with-coverage
40+
41+
floating-deps:
42+
steps:
43+
- run: node --version
44+
- run: npm version
45+
- checkout
46+
- node/install-yarn
47+
- node/with-cache:
48+
steps:
49+
- run:
50+
name: Install dependencies (floating)
51+
command: yarn install --no-lockfile
3952
- run: yarn node-test
4053

4154

@@ -110,12 +123,49 @@ jobs:
110123
steps:
111124
- node-test
112125

126+
floating-deps:
127+
docker:
128+
- image: circleci/node:lts-browsers
129+
steps:
130+
- floating-deps
131+
132+
deploy:
133+
docker:
134+
- image: circleci/node:lts-browsers
135+
steps:
136+
- run: node --version
137+
- run: npm version
138+
- checkout
139+
- node/install-yarn
140+
- node/with-cache:
141+
steps:
142+
- run:
143+
name: Install dependencies
144+
command: yarn install
145+
- run: yarn global add auto-dist-tag
146+
- run: auto-dist-tag --write
147+
- run:
148+
name: Authenticate with registry
149+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
150+
- run:
151+
name: Publish package
152+
command: npm publish
153+
113154
# Orchestrate or schedule a set of jobs, see https://circleci.com/docs/2.0/workflows/
114155
workflows:
115-
node-matrix:
156+
nightly:
157+
triggers:
158+
- schedule:
159+
cron: "0 0 * * *"
160+
filters:
161+
branches:
162+
only:
163+
- master
164+
test-and-deploy:
116165
jobs:
117166
- lint
118167
- node-lts-test
168+
- floating-deps
119169
- node-v8-smoke-test:
120170
requires:
121171
- lint
@@ -144,4 +194,12 @@ workflows:
144194
requires:
145195
- lint
146196
- node-lts-test
197+
- deploy:
198+
requires:
199+
- all-commands-smoke-test
200+
filters:
201+
tags:
202+
only: /^v.*/
203+
branches:
204+
ignore: /.*/
147205

.travis.yml

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

0 commit comments

Comments
 (0)