sudo: required
dist: trusty

language: node_js

node_js:
    - "6"
    - "5"
    - "4"

branches:
  only:
      - master
      - develop

before_install:
    - export LAUNCHPAD_CHROME=/usr/bin/google-chrome
    - export CHROME_BIN=/usr/bin/google-chrome
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start
    - sudo apt-get update
    - sudo apt-get install -y libappindicator1 fonts-liberation
    - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - sudo dpkg -i google-chrome*.deb
    - npm install -g polymer-cli
    - npm install -g bower
    - bower install

script: polymer test

sudo: required
dist: trusty

language: node_js

node_js:
    - "6"
    - "5"
    - "4"

branches:
  only:
      - master
      - develop

before_install:
    - export LAUNCHPAD_CHROME=/usr/bin/google-chrome
    - export CHROME_BIN=/usr/bin/google-chrome
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start
    - sudo apt-get update
    - sudo apt-get install -y libappindicator1 fonts-liberation
    - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - sudo dpkg -i google-chrome*.deb
    - npm install -g polymer-cli
    - npm install -g bower
    - bower install

script: polymer lint --input src/blog-app/* && polymer test

Check polymer lint prior to tests
Check polymer lint prior to tests
