From a0e942269961e8c60ba27abe316976a7a5b4b8da Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 11 Mar 2019 15:31:23 +0000 Subject: [PATCH] Disabled FF on Travis outside of cron builds no issue - keeps test builds quicker, saving FF tests for nightly regression builds run via cron --- ghost/admin/testem.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ghost/admin/testem.js b/ghost/admin/testem.js index 385abec0b1..6281d0a2ab 100644 --- a/ghost/admin/testem.js +++ b/ghost/admin/testem.js @@ -1,13 +1,20 @@ /* eslint-env node */ /* eslint-disable camelcase */ + +const isCronBuild = process.env.TRAVIS_EVENT_TYPE === 'cron'; + +let launch_in_ci = ['Chrome']; + +// we only test Firefox in nightly builds on CI to keep push/PR build times lower +if (isCronBuild) { + launch_in_ci.push('Firefox'); +} + module.exports = { framework: 'mocha', test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: [ - 'Chrome', - 'Firefox' - ], + launch_in_ci, launch_in_dev: [ 'Chrome', 'Firefox'