$ npm install saucelabs-runner
wrap wd and sauce-tunnel to test mocha runner across browsers
set username and access key from saucelabs to process.env.SAUCE_USERNAME and process.env.SAUCE_ACCESS_KEY.
https://github.com/react-component/calendar/blob/master/gulpfile.js
gulp.task('saucelabs', function (done) {
require('saucelabs-runner')({
browsers: [{
browserName: 'chrome'
}, {
browserName: 'firefox'
}]
}).fin(function () {
done();
setTimeout(function () {
process.exit(0);
}, 1000);
});
});
https://github.com/react-component/calendar/blob/master/package.json
{
"config": {
"port": 8001
},
"scripts": {
"start": "node --harmony node_modules/.bin/rc-server",
"saucelabs": "DEBUG=saucelabs-runner gulp saucelabs"
}
}
npm start
npm run saucelabs
https://saucelabs.com/platforms
https://docs.saucelabs.com/ci-integrations/travis-ci/
© 2010 - cnpmjs.org x YWFE | Home | YWFE