From b92d48f814f15a153c156f96d7013c9aeabfe58a Mon Sep 17 00:00:00 2001 From: web-padawan Date: Mon, 11 May 2020 09:14:08 +0300 Subject: [PATCH] chore: fix running CRON tests in SauceLabs --- .travis.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index babfa907..62d4921e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,20 +35,17 @@ jobs: script: - if [[ "$POLYMER" = "2" ]]; then npm -q i && npm i -q --no-save bower polymer-cli && bower -q i && - if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then - if [[ "$TEST_SUITE" = "visual_tests" ]]; then - npm i -q --no-save gemini@^5.0.0 gemini-sauce gemini-polyserve && - gemini test test/visual && gemini test test/visual -c .gemini-ff.yml; - else - wct --env saucelabs; - fi; - else + if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then npm run check && npm run lint && xvfb-run -s '-screen 0 1024x768x24' wct; - fi && - if [[ "$TRAVIS_EVENT_TYPE" = "cron" && "$TEST_SUITE" = "unit_tests" ]]; then + elif [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then wct --env saucelabs-cron; + elif [[ "$TEST_SUITE" = "visual_tests" ]]; then + npm i -q --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve && + gemini test test/visual && gemini test test/visual -c .gemini-ff.yml; + else + wct --env saucelabs; fi; fi - if [[ "$POLYMER" = "3" ]]; then @@ -56,10 +53,10 @@ script: rm -rf node_modules && magi p3-convert --out . --import-style=name && yarn install --flat && - if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then - wct --npm --env saucelabs; - else + if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then xvfb-run -s '-screen 0 1024x768x24' wct --npm; + else + wct --npm --env saucelabs; fi; fi