language: node_js sudo: required before_script: - npm install -g polymer-cli - polymer install --variants - >- npm run update-types && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run update-types".' && false) - >- npm run format && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m Project is not formatted. Please run "npm run format".' && false) env: global: - secure: >- ioGoTHzroJHO2O9B8y/xB7dsnWY+dArvRF+Dem/0Z8yTJZ/QFCeqFctQXNdj7HIm/y7ZxetVFBnxr+0HbF62qdmVkvfBzD/TaQPeXOHSyrSbR2aAQLeSwRbcUyOmmtk/q0frf1o81i3inoLjrGKieCZq7U8VF/6YyfRDhouU5/Q= - secure: >- LxoITNXWo1Vh2dOlg0I/KI/wuEaiMpNPRcg8MN6TOwy6UIKPwlpA69YZ4eLNDnuCjndQHL7Cl/TA5njubss4UeXG+L3oQMGNBEcRSHGZGxEyTZpofJp5FFK3Ja9CpaBMB7IsWAwuGPJZXM/6aoyAVipJ1et2Gbbasd5EbQYjRwc= node_js: stable addons: firefox: latest apt: sources: - google-chrome packages: - google-chrome-stable script: - xvfb-run polymer test - >- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default'; fi dist: trusty