Skip to content

Commit

Permalink
Add browsers test with zuul in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
enricostara committed Nov 12, 2014
1 parent 752bae8 commit 86702ee
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ language: node_js
node_js:
- "0.10"
after_script:
- npm run coveralls
- npm run zuul
- npm run coveralls
env:
global:
- secure: G6N8h4CcxUNIcFUStnx7faP1ZYo9mu6hWdfaE6Cg1EE/Kzas+0Fa/0L/KZC7K+Do/6pBL7K+b00Jz14OhAuejEaGQEgCZ5yEp3cR5zmk1RjCkFDihBvus18omV2k3fmQCi3cDv/xms5eJU3UZfHGkEqMEGGcmKcl6hpS8qBX29g=
- secure: KJFFEOXAljZ4Em2ESpjqoCnOIld7KBa4hWSx2Hx4Q2DdgzGUZDh410oOlyStXhLXb2y5gDvSmRoEHCtc0uMdkv6XDb/SkNGqsoiG2gLX/xUXM2UR4dQ5yDFxgItMaVyur2YGaifTxnzi2fDVYXyjVG4vuqEq0XfAFXmBrooh6Q==
8 changes: 6 additions & 2 deletions .zuul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ browsers:
- name: ie
version: 9..latest
- name: firefox
version: 25..latest
version: 30..latest
- name: safari
version: 6..latest
version: 6..latest
- name: android
version: 4.2..latest
- name: iphone
version: 7.0..latest
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ gulp.task('quality-api', function () {

gulp.task('test-lib', function () {
return gulp.src('./test/lib/**/*.js')
.pipe(mocha({reporter: 'tap', timeout: '10s'}));
.pipe(mocha({reporter: 'mocha-better-spec-reporter', timeout: '10s'}));
});
gulp.task('test-api', function () {
return gulp.src('./test/*.js')
.pipe(mocha({reporter: 'tap', timeout: '10s'}));
.pipe(mocha({reporter: 'mocha-better-spec-reporter', timeout: '10s'}));
});

gulp.task('cov-test-lib', function () {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"istanbul": "latest",
"mocha": "latest",
"mocha-lcov-reporter": "latest",
"mocha-better-spec-reporter": "latest",
"should": "latest",
"zuul": "latest"
},
Expand All @@ -44,6 +45,7 @@
},
"scripts": {
"test": "gulp test",
"coveralls": "istanbul cover ./node_modules/gulp/bin/gulp.js cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
"coveralls": "istanbul cover ./node_modules/gulp/bin/gulp.js cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
"zuul": "zuul -- ./test/lib/type-language/** ./test/lib/crypto-util/**"
}
}
4 changes: 2 additions & 2 deletions test/telegram.link.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ describe('TelegramLink', function () {
describe('#authorization()', function () {
it('should returns', function (done) {

this.timeout(30000);
require('get-log').enable('*');
this.timeout(120000);
// require('get-log').enable('*');
var telegramLink = new TelegramLink(primaryDC);
telegramLink.connect(function (e) {
if(e) {
Expand Down

0 comments on commit 86702ee

Please sign in to comment.