Created
February 19, 2018 23:13
-
-
Save admwx7/38bcc0a6a8a0f1f9e226c456fee202db to your computer and use it in GitHub Desktop.
TravisCI + Polymer2 element config files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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