sudo: true
dist: trusty
language: node_js
node_js: 8.9

cache:
  directories:
    - node_modules
    - bower_components

addons:
  firefox: latest
  google-chrome: latest

install:
  - npm install
  - polymer install

before_script:
  - gulp lint version:check
  #- polymer lint --rules polymer-2 --input *.html
  - if [[ "$TEST_SUITE" = "desktop" ]]; then
      xvfb-run -s '-screen 0 1024x768x24' wct;
    fi

env:
  # - TEST_SUITE=mobile #iOS tests on SauceLabs are constantly timing out due to the large number of tests. Disabled for now.
  - TEST_SUITE=polyfilled
  - TEST_SUITE=desktop

script:
  - if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" ]]; then
      wct --env saucelabs:$TEST_SUITE --expanded --verbose;
    fi
  - if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then
      if [[ "$TEST_SUITE" = "desktop" ]]; then
        wct --env saucelabs-cron;
      fi;
    fi

after_success:
  # - "cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | coveralls"

sudo: true
dist: trusty
language: node_js
node_js: 8.9

cache:
  directories:
    - node_modules
    - bower_components

addons:
  firefox: latest
  google-chrome: latest

install:
  - npm install
  - polymer install

before_script:
  - gulp lint version:check
  #- polymer lint --rules polymer-2 --input *.html
  - if [[ "$TEST_SUITE" = "desktop" ]]; then
      xvfb-run -s '-screen 0 1024x768x24' wct;
    fi

env:
  - TEST_SUITE=mobile
  - TEST_SUITE=polyfilled
  - TEST_SUITE=desktop

script:
  - if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" ]]; then
      wct --env saucelabs:$TEST_SUITE --expanded --verbose;
    fi
  - if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then
      if [[ "$TEST_SUITE" = "desktop" ]]; then
        wct --env saucelabs-cron;
      fi;
    fi

after_success:
  # - "cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | coveralls"

Enable mobile tests on sauce labs
Enable mobile tests on sauce labs
