Skip to content

Commit

Permalink
Merge pull request #54 from nbeach/pull-request-build-config
Browse files Browse the repository at this point in the history
Disabled SauceLabs tests for external pull requests (enviroment vars not av…
  • Loading branch information
nbeach committed Aug 31, 2018
2 parents 196fc56 + 57d14ff commit 5fe0e55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"release": "npm run test:browsers && npm run build && npm run release:tag && npm publish && npm run clean",
"test": "mocha --opts mocha.opts --watch",
"test:coverage": "nyc mocha --opts mocha.opts",
"test:browsers": "karma start",
"test:browsers": "./test-browsers.sh",
"test:prior-versions": "./test-angular-version.sh ^5.2.9 && ./test-angular-version.sh ^4.4.7 && ./test-angular-version.sh ^2.4.10",
"lint": "tslint --project .",
"ci": "yarn test:browsers && yarn lint && yarn test:prior-versions && yarn test:coverage && yarn build && nyc report --reporter=text-lcov | coveralls "
Expand Down
7 changes: 7 additions & 0 deletions test-browsers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [ "$SAUCE_ACCESS_KEY" != "" ]; then
./node_modules/.bin/karma start
else
echo "WARNING: No SauceLabs key found. Skipping browser tests."
fi

0 comments on commit 5fe0e55

Please sign in to comment.