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']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
"grunt-contrib-jshint": "*",
|
"grunt-contrib-jshint": "*",
|
||||||
"grunt-contrib-qunit": "*"
|
"grunt-contrib-qunit": "*"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "grunt travis --verbose"
|
||||||
|
},
|
||||||
"homepage": "http://html2canvas.hertzen.com",
|
"homepage": "http://html2canvas.hertzen.com",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{
|
||||||
|
@ -246,13 +246,19 @@
|
|||||||
|
|
||||||
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) {
|
testStream.onValue(function(test) {
|
||||||
tests.push(test);
|
tests.push(test);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
testStream.onEnd(runWebDriver);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (outputImages) {
|
if (outputImages) {
|
||||||
resultStream.flatMap(createImages).onValue(function(test){
|
resultStream.flatMap(createImages).onValue(function(test){
|
||||||
@ -261,5 +267,4 @@
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
testStream.onEnd(runWebDriver);
|
|
||||||
})();
|
})();
|
Loading…
x
Reference in New Issue
Block a user