Add CI
This commit is contained in:
Родитель
d9f6fcb537
Коммит
a52a2c3be2
|
@ -1,2 +1,3 @@
|
||||||
/node_modules
|
/node_modules/
|
||||||
/out
|
/coverage/
|
||||||
|
/out/
|
||||||
|
|
20
.npmignore
20
.npmignore
|
@ -1,9 +1,11 @@
|
||||||
.vscode/
|
/.vscode/
|
||||||
benchmark/
|
/benchmark/
|
||||||
out/
|
/coverage/
|
||||||
src/
|
/out/
|
||||||
test-cases/
|
/src/
|
||||||
.npmignore
|
/test-cases/
|
||||||
npm-debug.log
|
/.npmignore
|
||||||
gulpfile.js
|
/.travis.yml
|
||||||
ThirdPartyNotices.txt
|
/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": {
|
"scripts": {
|
||||||
"watch": "gulp watch",
|
"watch": "gulp watch",
|
||||||
|
"compile": "gulp compile",
|
||||||
"test": "mocha out/tests/tests",
|
"test": "mocha out/tests/tests",
|
||||||
|
"test-travis": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec out/tests/tests",
|
||||||
"benchmark": "node benchmark/benchmark.js"
|
"benchmark": "node benchmark/benchmark.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -28,6 +30,7 @@
|
||||||
"gulp": "^3.9.0",
|
"gulp": "^3.9.0",
|
||||||
"gulp-concat": "^2.6.0",
|
"gulp-concat": "^2.6.0",
|
||||||
"gulp-typescript": "^2.8.2",
|
"gulp-typescript": "^2.8.2",
|
||||||
|
"istanbul": "^0.4.4",
|
||||||
"mocha": "^3.0.2"
|
"mocha": "^3.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче