Merge lp:~stephen-stewart/online-services-common-js/grover-local-phantomjs into lp:online-services-common-js

Proposed by Stephen Stewart
Status: Merged
Approved by: Stephen Stewart
Approved revision: 31
Merged at revision: 29
Proposed branch: lp:~stephen-stewart/online-services-common-js/grover-local-phantomjs
Merge into: lp:online-services-common-js
Prerequisite: lp:~jonas-drange/online-services-common-js/config-managing
Diff against target: 48 lines (+5/-5)
2 files modified
Gruntfile.js (+2/-2)
package.json (+3/-3)
To merge this branch: bzr merge lp:~stephen-stewart/online-services-common-js/grover-local-phantomjs
Reviewer Review Type Date Requested Status
Jonas G. Drange (community) Approve
Review via email: mp+213844@code.launchpad.net

Commit message

Use local phantomjs for grover

Description of the change

Use local phantomjs for grover

To post a comment you must log in.
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

https://pastebin.canonical.com/107641/ [1]

[1] clean install, removed global phantomjs (since the npm installer reacts to it)

review: Needs Fixing
31. By Stephen Stewart

add phantomjs to devDeps

Revision history for this message
Stephen Stewart (stephen-stewart) wrote :

1) grover was depending on a global phantomjs, which in my new system didn't exist. mocha bundles it's own phantomjs, so it's unaffected.
2) i updated to use local phantom path, but did 'npm install phantomjs' not 'npm install phantomjs --save-dev', so any 'npm install'

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

I did
$ bzr update && rm -rf node_modules && npm i

and got https://pastebin.canonical.com/107685/

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

1.9.7-3 works, not sure why ^1.9 is not

Revision history for this message
Jonas G. Drange (jonas-drange) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Gruntfile.js'
2--- Gruntfile.js 2014-04-02 10:35:07 +0000
3+++ Gruntfile.js 2014-04-02 15:33:20 +0000
4@@ -224,7 +224,6 @@
5
6 var module = filepath.split(path.sep)[1];
7
8-
9 // jshint
10 grunt.config('jshint.pre.src', filepath);
11
12@@ -316,8 +315,9 @@
13 args,
14 child;
15
16- // arguments are a list of files to test
17 args = this.filesSrc;
18+ args.unshift('./node_modules/.bin/phantomjs');
19+ args.unshift('--phantom-bin');
20 args.unshift(grover);
21
22 child = exec(process.execPath, args, {
23
24=== modified file 'package.json'
25--- package.json 2014-04-02 12:31:55 +0000
26+++ package.json 2014-04-02 15:33:20 +0000
27@@ -1,10 +1,9 @@
28 {
29 "name": "online-services-common-js",
30- "version": "0.0.8",
31+ "version": "0.0.9",
32 "description": "online services yui modules",
33 "homepage": "https://launchpad.net/online-services-common-js",
34 "bugs": "https://bugs.launchpad.net/online-services-common-js",
35- "files": "build",
36 "scripts": {
37 "test": "echo \"Error: no test specified\" && exit 1",
38 "prepublish": "grunt bootstrap && bower install && grunt test"
39@@ -34,7 +33,8 @@
40 "mocha": "~1.17.1",
41 "chai": "~1.9.0",
42 "grunt-mocha": "~0.4.10",
43- "grunt-shell": "~0.6.4"
44+ "grunt-shell": "~0.6.4",
45+ "phantomjs": "^1.9.7-1"
46 },
47 "readmeFilename": "README.md"
48 }

Subscribers

People subscribed via source and target branches

to all changes: