Skip to content

Commit 34315db

Browse files
authored
Merge pull request webpack#3875 from webpack/test/circleci
Update circle.yml
2 parents 6a26e9b + 0f91f94 commit 34315db

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

circle.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
general:
2-
artifacts:
3-
- "./coverage"
1+
machine:
2+
environment:
3+
NO_WATCH_TESTS: 1
44

55
machine:
6-
node:
7-
version: 4.7.0
6+
environment:
7+
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
88

99
dependencies:
1010
pre:
11-
- npm install -g yarn
11+
- case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=4 ;; 1) NODE_VERSION=7 ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION
1212
override:
13-
- yarn install
14-
post:
13+
- yarn
1514
- yarn link || true && yarn link webpack
15+
cache_directories:
16+
- ~/.cache/yarn
1617

1718
test:
18-
pre:
19-
- npm run travis:lint
2019
override:
21-
- npm run travis:test:
22-
parallel: true
23-
files:
24-
- test/ConfigTestCases.test.js
25-
- test/TestCases.test.js
26-
- test/Stats.test.js
27-
- test/**/*.test.js
20+
- node -v
21+
- yarn --version
22+
- yarn run circleci:lint
23+
- yarn run circleci:test

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
"travis:benchmark": "npm run benchmark",
9595
"appveyor:test": "node --max_old_space_size=4096 node_modules\\mocha\\bin\\mocha --harmony test/*.test.js",
9696
"appveyor:benchmark": "npm run benchmark",
97+
"circleci:test": "node --max_old_space_size=4096 node_modules/mocha/bin/mocha --harmony test/*.test.js",
98+
"circleci:lint": "npm run lint-files && npm run nsp",
9799
"build:examples": "cd examples && node buildAll.js",
98100
"pretest": "npm run lint-files",
99101
"lint-files": "npm run lint && npm run beautify-lint",

0 commit comments

Comments
 (0)