Skip to content

Commit

Permalink
configure travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaëtan Renaudeau committed Nov 28, 2013
1 parent c49806d commit 1eb9f2b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
env:
global:
- secure: "SnbC/azgVzoM5XgEZU1nGJaCnXdNLtNIeKmGaU4tvZ+aQmll4GI+YAvH90djguuX9H+3BzcJJ0AhIm47P2v5D5DKdAxdopnOupZdO+leiP1R7IySMCz15vipAiM/robB+cqWec8C2Xjj7FN8YsEL3U3nlZG4nlQi266YaVH2+5o="
- secure: "QpyP+YVNUMrj7+LPbv+U7L2wEi7bgYEW+Xnxp/RLExjzh6aTTxizehn9pDrtfGX+/U9bmVswGhGv+D0XqY/hkgjoepXq2baKso5Jgk63Sp2YSJ2a6gbmbtHuT8cysXlTby/njac0XFGDx9ha/H5uAS7dusslJCr/1EWn0RKiVKg="
node_js:
- 0.1
script: grunt test-sauce;
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(grunt) {
version: "8"
},{
browserName: "internet explorer",
platform: "Windows XP",
platform: "Windows 7",
version: "9"
},{
browserName: "internet explorer",
Expand Down Expand Up @@ -183,7 +183,7 @@ module.exports = function(grunt) {
});

grunt.registerTask('default', ['jshint', 'uglify', 'docco']);
grunt.registerTask('test-local', ['mock-server', "watch"]);
grunt.registerTask('test', ['mock-server', "saucelabs-qunit"]);
grunt.registerTask('test', ['mock-server', "watch"]);
grunt.registerTask('test-sauce', ['mock-server', "saucelabs-qunit"]);

};
2 changes: 2 additions & 0 deletions test/qajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ asyncTest("headers", function() {
.then(Qajax.filterSuccess)
.then(Qajax.toJSON)
.then(function (json) {
log(json);
equal(json["x-hello"], "world", "The custom X-Hello header has been successfully sent");
})
.fail(checkNotError)
Expand All @@ -229,6 +230,7 @@ asyncTest("'headers' in defaults", function() {
.then(Qajax.filterSuccess)
.then(Qajax.toJSON)
.then(function (json) {
log(json);
equal(json["x-foo"], "bar", "The custom X-Foo header has been successfully sent");
})
.fail(checkNotError)
Expand Down

0 comments on commit 1eb9f2b

Please sign in to comment.