Skip to content

Commit

Permalink
chore: fix running CRON tests in SauceLabs
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed May 11, 2020
1 parent 83f2943 commit b92d48f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,28 @@ 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
npm --no-save -q install -g yarn bower magi-cli web-component-tester polymer-modulizer &&
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

Expand Down

0 comments on commit b92d48f

Please sign in to comment.