Attempt to shutdown chrome before starting a build
This commit is contained in:
parent
37dcf7285a
commit
00a791f182
10
runtests.js
10
runtests.js
@ -50,6 +50,16 @@ const run = (cmd, args, cb) => {
|
|||||||
run('npm', ['install'], () => {
|
run('npm', ['install'], () => {
|
||||||
const nThen = require('nthen');
|
const nThen = require('nthen');
|
||||||
nThen((waitFor) => {
|
nThen((waitFor) => {
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
run('bash', [
|
||||||
|
'ps', '-ef', '|' ,
|
||||||
|
'grep', '-v', 'grep', '|',
|
||||||
|
'grep', 'Google Chrome.app/Contents/MacOS/Google Chrome', '|',
|
||||||
|
'awk', '{print $2}', '|',
|
||||||
|
'while', 'read', 'x;', 'do', 'kill', '$x;', 'done'
|
||||||
|
], waitFor());
|
||||||
|
}
|
||||||
|
}).nThen((waitFor) => {
|
||||||
run('bower', ['install'], waitFor());
|
run('bower', ['install'], waitFor());
|
||||||
}).nThen((waitFor) => {
|
}).nThen((waitFor) => {
|
||||||
run('npm', ['run', 'fresh'], ()=>{});
|
run('npm', ['run', 'fresh'], ()=>{});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user