Skip to content

Commit

Permalink
Merge 5da0703 into dbc5d0f
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoCardoso committed Nov 1, 2018
2 parents dbc5d0f + 5da0703 commit c096a67
Show file tree
Hide file tree
Showing 34 changed files with 1,333 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,15 @@
{
"extends": "vaadin",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"html"
],
"globals": {
"Polymer": false,
"Vaadin": false
}
}
22 changes: 22 additions & 0 deletions .gemini.yml
@@ -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"
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
bower_components
node_modules
package-lock.json
yarn.lock
coverage
analysis.json
.vscode
.idea/
*.iml
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
3 changes: 3 additions & 0 deletions .stylelintrc
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-vaadin"
}
67 changes: 67 additions & 0 deletions .travis.yml
@@ -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"

0 comments on commit c096a67

Please sign in to comment.