-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into p3-preview
- Loading branch information
Showing
4 changed files
with
16 additions
and
18 deletions.
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 |
---|---|---|
@@ -1,39 +1,34 @@ | ||
sudo: false | ||
sudo: true | ||
dist: trusty | ||
language: node_js | ||
node_js: 8.9 | ||
node_js: 8.11 | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
before_script: | ||
- npm install -g bower polymer-cli@next | ||
- bower install | ||
addons: | ||
firefox: latest | ||
chrome: stable | ||
|
||
env: | ||
- POLYMER=2 | ||
- POLYMER=3 | ||
|
||
script: | ||
- if [[ "$POLYMER" = "2" ]]; then | ||
npm install && | ||
npm -q i && npm i -q --no-save bower polymer-cli && bower -q i && | ||
polymer lint --rules polymer-2 --input ./src/*.html ./theme/**/*.html && | ||
if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then | ||
npm i --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve && | ||
npm i -q --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve && | ||
gemini test test/visual && gemini test test/visual -c .gemini-chrome.yml; | ||
fi; | ||
fi | ||
|
||
- if [[ "$POLYMER" = "3" ]]; then | ||
npm install -g yarn magi-cli && | ||
(cd .. && git clone --depth 1 -b vaadin-components-next git://github.com/web-padawan/polymer-modulizer.git && cd polymer-modulizer && npm link) && | ||
npm --no-save -q install -g yarn bower magi-cli web-component-tester && | ||
(cd .. && git clone --depth 1 -b vaadin-components-rc git://github.com/web-padawan/polymer-modulizer.git && cd polymer-modulizer && npm -q link) && | ||
rm -rf node_modules && | ||
magi p3-convert --out . --import-style=name && | ||
yarn install --flat; | ||
fi | ||
# TODO: Visual tests are excluded because gemini-polyserve doesn't support Polymer 3 | ||
|
||
- if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then | ||
npm install && | ||
polymer test --env saucelabs-cron; | ||
fi |
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
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
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