Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,333 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "vaadin", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"html" | ||
], | ||
"globals": { | ||
"Polymer": false, | ||
"Vaadin": false | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
rootUrl: http://localhost:8080/components/vaadin-login/test/visual/ | ||
gridUrl: http://localhost:4444/wd/hub | ||
screenshotsDir: ./test/visual/screens | ||
|
||
system: | ||
plugins: | ||
polyserve: | ||
port: 8080 | ||
sauce: true | ||
|
||
browsers: | ||
chrome: | ||
desiredCapabilities: | ||
browserName: "chrome" | ||
version: "66.0" | ||
platform: "Windows 10" | ||
|
||
firefox: | ||
desiredCapabilities: | ||
browserName: "firefox" | ||
version: "47.0" | ||
platform: "Windows 10" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
bower_components | ||
node_modules | ||
package-lock.json | ||
yarn.lock | ||
coverage | ||
analysis.json | ||
.vscode | ||
.idea/ | ||
*.iml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "stylelint-config-vaadin" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
sudo: false | ||
dist: trusty | ||
language: node_js | ||
node_js: 8.11 | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
addons: | ||
firefox: latest | ||
chrome: stable | ||
|
||
jobs: | ||
include: | ||
- if: type = push | ||
env: TEST_SUITE=unit_tests POLYMER=2 | ||
#- if: type = push | ||
# env: TEST_SUITE=visual_tests POLYMER=2 | ||
- if: type = push | ||
env: TEST_SUITE=unit_tests POLYMER=3 | ||
- if: type = pull_request | ||
env: POLYMER=2 | ||
addons: | ||
firefox: latest | ||
chrome: stable | ||
- if: type = pull_request | ||
env: POLYMER=3 | ||
addons: | ||
firefox: latest | ||
chrome: stable | ||
- if: type = cron | ||
env: TEST_SUITE=unit_tests POLYMER=2 | ||
|
||
script: | ||
- if [[ "$POLYMER" = "2" ]]; then | ||
npm -q i && npm i -q --no-save bower polymer-cli && bower -q i && | ||
gulp lint version:check && | ||
polymer lint --rules polymer-2 --input ./src/*.html ./theme/**/*.html && | ||
if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then | ||
if [[ "$TEST_SUITE" = "visual_tests" ]]; then | ||
npm i -q --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve && | ||
gemini test test/visual; | ||
else | ||
wct --env saucelabs; | ||
fi; | ||
else | ||
xvfb-run -s '-screen 0 1024x768x24' wct; | ||
fi && | ||
if [[ "$TRAVIS_EVENT_TYPE" = "cron" && "$TEST_SUITE" = "unit_tests" ]]; then | ||
wct --env saucelabs-cron; | ||
fi; | ||
fi | ||
- if [[ "$POLYMER" = "3" ]]; then | ||
npm --no-save -q install -g yarn bower magi-cli web-component-tester polymer-modulizer && | ||
rm -rf node_modules && | ||
magi p3-convert --out . --import-style=name && | ||
yarn install --flat && | ||
if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then | ||
wct --npm --env saucelabs; | ||
else | ||
xvfb-run -s '-screen 0 1024x768x24' wct --npm; | ||
fi; | ||
fi | ||
|
||
after_success: | ||
- "cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | coveralls" |
Oops, something went wrong.