Skip to content

Commit

Permalink
feat(testing): add browserstack for cross browser testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Oct 26, 2018
1 parent 01bb8b8 commit 78c3e8b
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ node_js:
- "8"
after_success:
- npm run coveralls
stages:
- test
- name: browser
if: type = push
jobs:
include:
- stage: browser
node_js: 8
script: if ! git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'; then npm test && npm run browserstack; fi
cache:
directories:
- "$HOME/.npm"
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Features:
- [How to use it](#how-to-use-it)
- [Methods](#methods)
- [Support me](#support-me)
- [Thanks](#thanks)
- [License](#license)

## Install
Expand Down Expand Up @@ -175,6 +176,12 @@ Remove stored data relative to your stepper and listeners.

If you want to thank me, you can support me and become my [Patron](https://www.patreon.com/jservoire)

## Thanks

[![BrowserStack Logo](https://www.browserstack.com/images/mail/browserstack-logo-footer.png)](https://www.browserstack.com/)

Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers!

## License

[MIT](https://github.com/Johann-S/bs-stepper/blob/master/LICENSE)
219 changes: 219 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"node": ">=8"
},
"scripts": {
"browserstack": "npm run build-js:unit && cross-env browser=true karma start tests/karma.conf.js",
"build": "npm run build-js && npm run build-css",
"build-js": "rollup -c && rollup -c --environment PROD",
"build-js:unit": "cross-env NODE_ENV=test rollup -c --environment TEST",
Expand Down Expand Up @@ -59,8 +60,10 @@
"cross-env": "^5.2.0",
"gh-pages": "^2.0.1",
"http-server": "^0.11.1",
"ip": "^1.1.5",
"jasmine-core": "^3.3.0",
"karma": "^3.1.1",
"karma-browserstack-launcher": "^1.3.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^1.1.2",
Expand Down

0 comments on commit 78c3e8b

Please sign in to comment.