Skip to content

Instantly share code, notes, and snippets.

@admwx7
Created February 19, 2018 23:13
Show Gist options
  • Select an option

  • Save admwx7/38bcc0a6a8a0f1f9e226c456fee202db to your computer and use it in GitHub Desktop.

Select an option

Save admwx7/38bcc0a6a8a0f1f9e226c456fee202db to your computer and use it in GitHub Desktop.
TravisCI + Polymer2 element config files
language: node_js
sudo: false
node_js: stable
addons:
firefox: latest
chrome: stable
dist: trusty
install:
- npm i -g bower polymer-cli
- npx polymer install
before_script:
- npm i -g eslint eslint-config-google eslint-plugin-chai-expect eslint-plugin-html
- npm run lint
script:
- npm run test
- if [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test:sauce; fi
notifications:
email:
on_success: never
on_failure: always
{
"scripts": {
"lint": "npm run lint:javascript && npx polymer lint",
"lint:javascript": "npx eslint . --ext js,html --ignore-path .gitignore",
"test": "npx polymer test",
"test:sauce": "npx polymer test --plugin sauce"
}
}
{
"plugins": {
"local": {
"browserOptions": {
"chrome": [
"headless",
"disable-gpu",
"no-sandbox"
],
"firefox": [
"-headless"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment