Move test to gulp instead of npm
This commit is contained in:
Родитель
09f45e014f
Коммит
a6f0af8e04
|
@ -16,9 +16,9 @@ install:
|
|||
script:
|
||||
- npm run vscode:prepublish
|
||||
- npm run lint
|
||||
- npm run test
|
||||
- gulp test
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
on_failure: always
|
||||
on_failure: always
|
||||
|
|
|
@ -9,6 +9,14 @@ const download = require('gulp-download');
|
|||
const path = require('path');
|
||||
const os = require('os');
|
||||
const fse = require('fs-extra');
|
||||
const cp = require('child_process');
|
||||
|
||||
gulp.task('test', ['install-azure-account'], (cb) => {
|
||||
const cmd = cp.spawn('node', ['./node_modules/vscode/bin/test'], { stdio: 'inherit' });
|
||||
cmd.on('close', (code) => {
|
||||
cb(code);
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('install-azure-account', async () => {
|
||||
const version = '0.2.2';
|
||||
|
|
|
@ -370,8 +370,7 @@
|
|||
"vscode:prepublish": "tsc -p ./",
|
||||
"compile": "tsc -watch -p ./",
|
||||
"lint": "tslint --project tsconfig.json -e src/*.d.ts -t verbose",
|
||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||
"test": "gulp install-azure-account;node ./node_modules/vscode/bin/test"
|
||||
"postinstall": "node ./node_modules/vscode/bin/install"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/clipboardy": "^1.1.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче