sudo: false
dist: trusty
language: node_js
node_js: stable

cache:
  directories:
    - node_modules

install:
  - npm install
  - polymer install --variants

script:
  - if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
      npm i gemini@^4.0.0 gemini-sauce gemini-polyserve;
      gemini test test/visual;
      gemini test test/visual -c .gemini-ie.yml;

      rm -rf bower_components;
      mv bower_components-1.x bower_components;
      gemini test test/visual;
      gemini test test/visual -c .gemini-ie.yml;
    fi

sudo: false
dist: trusty
language: node_js
node_js: 8.0

cache:
  directories:
    - node_modules

install:
  - npm install
  - polymer install --variants

script:
  - if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
      npm i gemini@^4.0.0 gemini-sauce gemini-polyserve;
      gemini test test/visual;
      gemini test test/visual -c .gemini-ie.yml;

      rm -rf bower_components;
      mv bower_components-1.x bower_components;
      gemini test test/visual;
      gemini test test/visual -c .gemini-ie.yml;
    fi

Set node_js version to 8.0 (npm to 5.0)
Set node_js version to 8.0 (npm to 5.0)