Skip to content

Commit

Permalink
Update public ci
Browse files Browse the repository at this point in the history
  • Loading branch information
beck committed Nov 18, 2017
1 parent 297b888 commit 8293e65
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
script: script/test
script: npm run test:ci
language: node_js
node_js:
- '0.10'
- 6
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# classList.js

[![Test Status](https://saucelabs.com/buildstatus/classlist-polyfill)][sauce]

[sauce]: https://saucelabs.com/u/classlist-polyfill

Cross-browser JavaScript shim that fully implements `element.classList`.

Refer to [the MDN page on `element.classList`][MDN] for more information.
Expand Down
5 changes: 5 additions & 0 deletions test/wdio.defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ exports.config = {
global.expect = chai.expect;
const session = browser.session().value;
global.agent = `${session.browserName} ${session.browserVersion}`;
if (process.env.TRAVIS_BUILD_NUMBER) {
// enable saucelab badges
capabilities.public = true;
capabilities.build = process.env.TRAVIS_BUILD_NUMBER;
}
},

baseUrl: 'http://localhost:4567',
Expand Down

0 comments on commit 8293e65

Please sign in to comment.