Skip to content

Commit

Permalink
ci: add plunker mode to tracis
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Jul 24, 2016
1 parent 540d08e commit 8d48ccd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions scripts/ci/sources/mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ is_circular_deps_check() {
is_extract_metadata() {
[[ "$MODE" = extract_metadata ]]
}

is_plunker() {
[[ "$MODE" = plunker ]]
}

0 comments on commit 8d48ccd

Please sign in to comment.