From a8957eaace8459ae0cf96daa2cdb8178f3ba2eba Mon Sep 17 00:00:00 2001 From: Daniel DeMicco Date: Wed, 11 Apr 2018 16:12:07 -0700 Subject: [PATCH 1/2] Chore: build tweaks to remove stages to speed up cron --- .travis.yml | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 833f999ac..7c4cc4f8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,19 +2,20 @@ language: node_js node_js: - '8' +cache: yarn notifications: email: recipients: - preview-alerts@box.com aliases: - &sauce-labs + if: type = cron before_script: - python -m SimpleHTTPServer & - sleep 5 addons: sauce_connect: true script: yarn run functional-tests-ci - cache: yarn - &sauce-labs-ios <<: *sauce-labs script: yarn run functional-tests-ci --grep @mobile @@ -24,53 +25,32 @@ aliases: - &sauce-labs-firefox <<: *sauce-labs script: yarn run functional-tests-ci --grep @firefox -stages: -- ci -- name: sauce-labs - windows 10 - if: type = cron -- name: sauce-labs - osx - if: type = cron -- name: sauce-labs - mobile - if: type = cron jobs: include: - - stage: ci - script: yarn run ci - cache: yarn + - script: yarn run ci - <<: *sauce-labs - stage: sauce-labs - windows 10 env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="MicrosoftEdge" script: yarn run functional-tests-ci --grep @edge - <<: *sauce-labs-chrome - stage: sauce-labs - windows 10 env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="chrome" - <<: *sauce-labs-firefox - stage: sauce-labs - windows 10 env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="firefox" - <<: *sauce-labs - stage: sauce-labs - windows 10 env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="internet explorer" script: yarn run functional-tests-ci --grep @ie - <<: *sauce-labs - stage: sauce-labs - osx env: BROWSER_PLATFORM="macOS 10.13" BROWSER_NAME="safari" script: yarn run functional-tests-ci --grep @safari - <<: *sauce-labs-chrome - stage: sauce-labs - osx env: BROWSER_PLATFORM="macOS 10.13" BROWSER_NAME="chrome" - <<: *sauce-labs-firefox - stage: sauce-labs - osx env: BROWSER_PLATFORM="macOS 10.13" BROWSER_NAME="firefox" - <<: *sauce-labs-ios - stage: sauce-labs - mobile env: BROWSER_PLATFORM="iOS" DEVICE_NAME="iPhone X Simulator" PLATFORM_VERSION="11.2" BROWSER_NAME="Safari" - <<: *sauce-labs-ios - stage: sauce-labs - mobile env: BROWSER_PLATFORM="iOS" DEVICE_NAME="iPhone 6 Simulator" PLATFORM_VERSION="11.2" BROWSER_NAME="Safari" - <<: *sauce-labs-ios - stage: sauce-labs - mobile env: BROWSER_PLATFORM="iOS" DEVICE_NAME="iPad Simulator" PLATFORM_VERSION="11.2" BROWSER_NAME="Safari" - <<: *sauce-labs - stage: sauce-labs - mobile env: BROWSER_PLATFORM="Android" DEVICE_NAME="Android GoogleAPI Emulator" PLATFORM_VERSION="7.1" BROWSER_NAME="Chrome" script: yarn run functional-tests-ci --grep @android From 89be6740c3063a2decdd2345ea8d3809224a9d94 Mon Sep 17 00:00:00 2001 From: Daniel DeMicco Date: Mon, 16 Apr 2018 12:50:21 -0700 Subject: [PATCH 2/2] Chore: add travis_retry --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7c4cc4f8e..6e023b0bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,32 +15,32 @@ aliases: - sleep 5 addons: sauce_connect: true - script: yarn run functional-tests-ci + script: travis_retry yarn run functional-tests-ci - &sauce-labs-ios <<: *sauce-labs - script: yarn run functional-tests-ci --grep @mobile + script: travis_retry yarn run functional-tests-ci --grep @mobile - &sauce-labs-chrome <<: *sauce-labs - script: yarn run functional-tests-ci --grep @chrome + script: travis_retry yarn run functional-tests-ci --grep @chrome - &sauce-labs-firefox <<: *sauce-labs - script: yarn run functional-tests-ci --grep @firefox + script: travis_retry yarn run functional-tests-ci --grep @firefox jobs: include: - script: yarn run ci - <<: *sauce-labs env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="MicrosoftEdge" - script: yarn run functional-tests-ci --grep @edge + script: travis_retry yarn run functional-tests-ci --grep @edge - <<: *sauce-labs-chrome env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="chrome" - <<: *sauce-labs-firefox env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="firefox" - <<: *sauce-labs env: BROWSER_PLATFORM="Windows 10" BROWSER_NAME="internet explorer" - script: yarn run functional-tests-ci --grep @ie + script: travis_retry yarn run functional-tests-ci --grep @ie - <<: *sauce-labs env: BROWSER_PLATFORM="macOS 10.13" BROWSER_NAME="safari" - script: yarn run functional-tests-ci --grep @safari + script: travis_retry yarn run functional-tests-ci --grep @safari - <<: *sauce-labs-chrome env: BROWSER_PLATFORM="macOS 10.13" BROWSER_NAME="chrome" - <<: *sauce-labs-firefox @@ -53,4 +53,4 @@ jobs: env: BROWSER_PLATFORM="iOS" DEVICE_NAME="iPad Simulator" PLATFORM_VERSION="11.2" BROWSER_NAME="Safari" - <<: *sauce-labs env: BROWSER_PLATFORM="Android" DEVICE_NAME="Android GoogleAPI Emulator" PLATFORM_VERSION="7.1" BROWSER_NAME="Chrome" - script: yarn run functional-tests-ci --grep @android + script: travis_retry yarn run functional-tests-ci --grep @android