Add circle.yml file

This commit is contained in:
Chris Clark
2015-06-05 16:50:18 -07:00
parent 76d8c8b061
commit f1c95112bd
2 changed files with 19 additions and 1 deletions

18
circle.yml Normal file
View File

@@ -0,0 +1,18 @@
machine:
node:
version: 0.12.0
dependencies:
post:
- npm install -g eslint
- npm install -g esprima-fb # allow flow type annotations in eslint
- npm install -g flow-bin
test:
pre:
- curl 'https://raw.githubusercontent.com/ripple/javascript-style-guide/es6/eslintrc' > ./eslintrc
- 'echo "parser: esprima-fb" >> ./eslintrc'
- eslint --reset -c ./eslintrc $(git --no-pager diff --name-only -M100% --diff-filter=AM --relative $(git merge-base FETCH_HEAD origin/HEAD) FETCH_HEAD | grep "\.js$")
- npm run typecheck
override:
- npm test --coverage
post:
- npm run coveralls

View File

@@ -62,6 +62,6 @@
},
"readmeFilename": "README.md",
"engines": {
"node": ">=0.10.0"
"node": ">=0.12.0"
}
}