fix(ci): better deal with ci environments

This commit is contained in:
Philipp Kunz 2018-05-22 13:42:21 +02:00
parent 9681acdcc4
commit cb1ee35f2e

View File

@ -2,8 +2,12 @@ import open = require('opn');
import { ChildProcess } from 'child_process';
export let openUrl = async urlArg => {
const childProcess = await open(urlArg, {
wait: false
});
return childProcess;
if(!(process.env.CI === 'true')) {
const childProcess = await open(urlArg, {
wait: false
});
return childProcess;
} else {
return null
}
};