Hold PhantomJS version at 1.9.0-1.

And don't attempt any chmod magic, either.
This commit is contained in:
Ben Newman 2013-08-12 17:44:42 -04:00
parent 5cbabdf4c9
commit 983120102c
2 changed files with 7 additions and 10 deletions

View File

@ -1,7 +1,6 @@
'use strict';
var assert = require("assert");
var fs = require("fs");
var grunt = require("grunt");
var spawn = grunt.util.spawn;
var semver = require("semver");
@ -59,13 +58,11 @@ module.exports = function() {
var config = this.data;
var done = this.async();
fs.chmod(phantomjs, 755, function(err) {
spawn({
cmd: phantomjs,
args: ["--version"]
}, function(error, result, code) {
checkVersion(error, result, code);
run(config, done);
});
spawn({
cmd: phantomjs,
args: ["--version"]
}, function(error, result, code) {
checkVersion(error, result, code);
run(config, done);
});
};

View File

@ -50,7 +50,7 @@
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.6.0",
"optimist": "~0.4.0",
"phantomjs": ">= 1.9.0",
"phantomjs": "1.9.0-1",
"semver": "~2.0.0",
"uglify-js": "~2.3.6",
"grunt-contrib-clean": "~0.4.1",