Add CI
This commit is contained in:
Родитель
d9f6fcb537
Коммит
a52a2c3be2
|
@ -1,2 +1,3 @@
|
|||
/node_modules
|
||||
/out
|
||||
/node_modules/
|
||||
/coverage/
|
||||
/out/
|
||||
|
|
20
.npmignore
20
.npmignore
|
@ -1,9 +1,11 @@
|
|||
.vscode/
|
||||
benchmark/
|
||||
out/
|
||||
src/
|
||||
test-cases/
|
||||
.npmignore
|
||||
npm-debug.log
|
||||
gulpfile.js
|
||||
ThirdPartyNotices.txt
|
||||
/.vscode/
|
||||
/benchmark/
|
||||
/coverage/
|
||||
/out/
|
||||
/src/
|
||||
/test-cases/
|
||||
/.npmignore
|
||||
/.travis.yml
|
||||
/gulpfile.js
|
||||
/npm-debug.log
|
||||
/ThirdPartyNotices.txt
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- "5.10"
|
||||
env:
|
||||
- CXX=g++-4.8
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-4.8
|
||||
script:
|
||||
- npm run compile
|
||||
- npm run test-travis
|
||||
# Send coverage data to Coveralls
|
||||
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
|
|
@ -16,7 +16,9 @@
|
|||
},
|
||||
"scripts": {
|
||||
"watch": "gulp watch",
|
||||
"compile": "gulp compile",
|
||||
"test": "mocha out/tests/tests",
|
||||
"test-travis": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec out/tests/tests",
|
||||
"benchmark": "node benchmark/benchmark.js"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -28,6 +30,7 @@
|
|||
"gulp": "^3.9.0",
|
||||
"gulp-concat": "^2.6.0",
|
||||
"gulp-typescript": "^2.8.2",
|
||||
"istanbul": "^0.4.4",
|
||||
"mocha": "^3.0.2"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче