diff --git a/.travis.yml b/.travis.yml index dc3f4e01dfe6..9e50dedf9fb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,9 +43,12 @@ env: - MODE=browserstack_required - MODE=saucelabs_optional - MODE=browserstack_optional + - MODE=plunker matrix: + fast_finish: true allow_failures: + - env: "MODE=plunker" - env: "MODE=saucelabs_optional" - env: "MODE=browserstack_optional" diff --git a/package.json b/package.json index 1d50ce46ca9f..3f68db9287b1 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "tslint": "tslint -c tslint.json 'src/**/*.ts'", "stylelint": "stylelint 'src/**/*.scss' --config stylelint-config.json --syntax scss", "check-circular-deps": "madge --circular ./dist", + "update-plunker": "node ./scripts/ci/create-plunker-bundle.js", "typings": "typings install --global", "postinstall": "npm run typings", "e2e": "protractor", diff --git a/scripts/ci/build-and-test.sh b/scripts/ci/build-and-test.sh index 969cba5a68ed..60e6f0049164 100755 --- a/scripts/ci/build-and-test.sh +++ b/scripts/ci/build-and-test.sh @@ -45,6 +45,8 @@ elif is_extract_metadata; then # Run `tsc` first so that the directory structure in dist/ matches what ngc expects. ./node_modules/.bin/tsc -p ./src/demo-app/ ./node_modules/.bin/ngc -p ./src/demo-app/ +elif is_plunker; then + npm run update-plunker else # Unit tests npm run build diff --git a/scripts/ci/sources/mode.sh b/scripts/ci/sources/mode.sh index a6903ccf3d7f..6410f8ed4540 100644 --- a/scripts/ci/sources/mode.sh +++ b/scripts/ci/sources/mode.sh @@ -16,3 +16,7 @@ is_circular_deps_check() { is_extract_metadata() { [[ "$MODE" = extract_metadata ]] } + +is_plunker() { + [[ "$MODE" = plunker ]] +} \ No newline at end of file