mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
setup travis config
This commit is contained in:
parent
b91fd9bc87
commit
0d4b6ba665
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- '0.10'
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8="
|
||||||
|
- secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
|
||||||
|
before_script:
|
||||||
|
- npm install -g grunt-cli
|
||||||
|
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
@ -93,6 +93,7 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
// Default task.
|
// Default task.
|
||||||
grunt.registerTask('build', ['concat', 'uglify']);
|
grunt.registerTask('build', ['concat', 'uglify']);
|
||||||
grunt.registerTask('default', ['jshint', 'concat', 'qunit', 'uglify', 'webdriver']);
|
grunt.registerTask('default', ['jshint', 'concat', 'qunit', 'uglify']);
|
||||||
|
grunt.registerTask('travis', ['jshint', 'concat', 'qunit', 'uglify', 'webdriver']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
63
package.json
63
package.json
@ -1,32 +1,35 @@
|
|||||||
{
|
{
|
||||||
"title": "html2canvas",
|
"title": "html2canvas",
|
||||||
"name": "html2canvas",
|
"name": "html2canvas",
|
||||||
"description": "Screenshots with JavaScript",
|
"description": "Screenshots with JavaScript",
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Niklas von Hertzen (@niklasvh)"
|
"name": "Niklas von Hertzen (@niklasvh)"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8.0"
|
"node": ">=0.8.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"base64-arraybuffer": ">= 0.1.0",
|
"base64-arraybuffer": ">= 0.1.0",
|
||||||
"png-js": ">= 0.1.1",
|
"png-js": ">= 0.1.1",
|
||||||
"sync-webdriver": ">=0.1.1",
|
"sync-webdriver": ">=0.1.1",
|
||||||
"express": "~3.2.3",
|
"express": "~3.2.3",
|
||||||
"baconjs": "~0.3.15"
|
"baconjs": "~0.3.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": ">=0.4.0",
|
"grunt": ">=0.4.0",
|
||||||
"grunt-contrib-concat": "*",
|
"grunt-contrib-concat": "*",
|
||||||
"grunt-contrib-uglify": "*",
|
"grunt-contrib-uglify": "*",
|
||||||
"grunt-contrib-jshint": "*",
|
"grunt-contrib-jshint": "*",
|
||||||
"grunt-contrib-qunit": "*"
|
"grunt-contrib-qunit": "*"
|
||||||
},
|
},
|
||||||
"homepage": "http://html2canvas.hertzen.com",
|
"scripts": {
|
||||||
"licenses": [
|
"test": "grunt travis --verbose"
|
||||||
{
|
},
|
||||||
"type": "MIT"
|
"homepage": "http://html2canvas.hertzen.com",
|
||||||
}
|
"licenses": [
|
||||||
]
|
{
|
||||||
|
"type": "MIT"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -246,12 +246,18 @@
|
|||||||
|
|
||||||
var tests = [],
|
var tests = [],
|
||||||
outputImages = false,
|
outputImages = false,
|
||||||
results = {},
|
results = {};
|
||||||
testStream = getTests("tests/cases");
|
|
||||||
|
exports.tests = function() {
|
||||||
|
var testStream = getTests("tests/cases");
|
||||||
|
|
||||||
|
testStream.onValue(function(test) {
|
||||||
|
tests.push(test);
|
||||||
|
});
|
||||||
|
|
||||||
|
testStream.onEnd(runWebDriver);
|
||||||
|
};
|
||||||
|
|
||||||
testStream.onValue(function(test) {
|
|
||||||
tests.push(test);
|
|
||||||
});
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (outputImages) {
|
if (outputImages) {
|
||||||
@ -261,5 +267,4 @@
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
testStream.onEnd(runWebDriver);
|
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user