Skip to content

Commit a057003

Browse files
committed
Update public ci
1 parent 6efba13 commit a057003

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
script: script/test
1+
script: npm run test:ci
22
language: node_js
33
node_js:
4-
- '0.10'
4+
- 6

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# classList.js
22

3+
[![Test Status](https://saucelabs.com/buildstatus/classlist-polyfill)][sauce]
4+
5+
[sauce]: https://saucelabs.com/u/classlist-polyfill
6+
37
Cross-browser JavaScript shim that fully implements `element.classList`.
48

59
Refer to [the MDN page on `element.classList`][MDN] for more information.

test/wdio.defaults.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ exports.config = {
2626
global.expect = chai.expect;
2727
const session = browser.session().value;
2828
global.agent = `${session.browserName} ${session.browserVersion}`;
29+
if (process.env.TRAVIS_BUILD_NUMBER) {
30+
// enable saucelab badges
31+
capabilities.public = true;
32+
capabilities.build = process.env.TRAVIS_BUILD_NUMBER;
33+
}
2934
},
3035

3136
baseUrl: 'http://localhost:4567',

0 commit comments

Comments
 (0)