Skip to content

Commit

Permalink
Run tests with modulized P3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Mar 21, 2018
1 parent a9731c1 commit a6123d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ before_script:
script:
- if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
wct --env saucelabs;
rm package.json;
modulizer --npm-name @vaadin/vaadin-element-mixin --npm-version 0.0.0 --out modulizer_out --dependency-mapping vaadin-development-mode-detector,@vaadin/vaadin-development-mode-detector,git+https://github.com/vaadin/vaadin-development-mode-detector.git#p3-preview vaadin-usage-statistics,@vaadin/vaadin-usage-statistics,git+https://github.com/vaadin/vaadin-usage-statistics.git#p3-preview --force;
mv package.json modulizer_out;
(cd modulizer_out && npm i);
polymer test --npm --env saucelabs-p3 --root modulizer_out;
fi
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
wct --env saucelabs-cron;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vaadin-element-mixin",
"name": "@vaadin/vaadin-element-mixin",
"version": "1.0.2",
"description": "vaadin-element-mixin",
"main": "vaadin-element-mixin.html",
Expand Down Expand Up @@ -29,6 +29,7 @@
"gulp-html-extract": "^0.3.0",
"gulp-stylelint": "^4.0.0",
"polymer-cli": "^1.2.0",
"polymer-modulizer": "git://github.com/polymer/polymer-modulizer.git#master",
"stylelint": "^8.0.0",
"stylelint-config-vaadin": "latest",
"web-component-tester": "^6.0.0",
Expand Down
10 changes: 9 additions & 1 deletion wct.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,22 @@ module.exports = {
'macOS 10.12/safari@11.0'
];

var saucelabsPlatformsP3 = [
'macOS 10.12/iphone@10.3',
'macOS 10.12/ipad@10.3',
'Windows 10/chrome@59',
'macOS 10.12/safari@11.0'
];

var cronPlatforms = [
'Windows 10/chrome@59',
'Windows 10/firefox@54'
];

if (argv.env === 'saucelabs') {
context.options.plugins.sauce.browsers = saucelabsPlatforms;

} else if (argv.env === 'saucelabs-p3') {
context.options.plugins.sauce.browsers = saucelabsPlatformsP3;
} else if (argv.env === 'saucelabs-cron') {
context.options.plugins.sauce.browsers = cronPlatforms;
}
Expand Down

0 comments on commit a6123d8

Please sign in to comment.