mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
Fix tests failure on PR
This commit is contained in:
parent
c24668938e
commit
8300aa6055
|
@ -4,10 +4,22 @@
|
||||||
require('shelljs/global');
|
require('shelljs/global');
|
||||||
set('-e');
|
set('-e');
|
||||||
|
|
||||||
|
function isPR() {
|
||||||
|
return process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false';
|
||||||
|
}
|
||||||
|
|
||||||
if (process.env.JOB === 'e2e-guru') {
|
if (process.env.JOB === 'e2e-guru') {
|
||||||
|
if (isPR()) {
|
||||||
|
console.log('Skiping E2E tests on PR');
|
||||||
|
return;
|
||||||
|
}
|
||||||
exec('npm run e2e');
|
exec('npm run e2e');
|
||||||
} else {
|
} else {
|
||||||
exec('npm run unit');
|
exec('npm run unit');
|
||||||
|
if (isPR()) {
|
||||||
|
console.log('Skiping E2E tests on PR');
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.log('Starting Basic E2E');
|
console.log('Starting Basic E2E');
|
||||||
exec('npm run e2e');
|
exec('npm run e2e');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user