New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build node-sqlite3 for node-webkit on Travis CI #252
Commits on Feb 6, 2014
-
Travis CI: non-empty NODE_WEBKIT="0.8.3" is set for Node v0.10
There's currently no API to determine the most recent version of node-webkit over the Web.
-
install nw-gyp in 32 bit environment if NODE_WEBKIT is not empty
Note: `make clean` happens after `npm install nw-gyp -g` because we intend to use `nw-gyp` later to rebuild the existing build of node-sqlite3.
-
attempt a build for node-webkit 0.8.4 (instead of 0.8.3)
Release notes https://groups.google.com/d/msg/node-webkit/bPjur7aFaQc/4TP6o3SM-8sJ say that 0.8.4 fix improves the behaviour on OS X.
-
do not uninstall nw-gyp on 64 bit Linux
It seems (in installation logs) that nw-gyp does not contain any binary (i.e. compiled) addons. Thus it's fine if nw-gyp survives 64bit→32bit switch of our Node.js environment on Linux.
-
node-pre-gyp package testpackage (if NODE_WEBKIT is not empty)
This commit does also prepend `on Linux 64 bit:` to some comments (making it easier to understand what subplatform is targeted). On Linux nw-gyp is installed earlier (in 64 bit mode) and thus we can refrain from its reinstallation for 32 bit, speeding things up.
Commits on Feb 13, 2014
-
added
--runtime=node-webkit --overwrite
twiceTry a feature originally introduced in node-pre-gyp v0.4.2 commit mapbox/node-pre-gyp@370024a for mapbox/node-pre-gyp#14.
-
use the tarball version of node-pre-gyp v0.4.2
Working around a temporal inavailability of node-pre-gyp v0.4.2. See mapbox/node-pre-gyp#35 for details.
-
try node-webkit's filename fix
A pull request (mapbox/node-pre-gyp#36) is opened to land a partial fix for node-pre-gyp's validation process. This commit uses a source branch of that pull request. After this commit, node-pre-gyp's validator is expected to launch `nw` instead of `node-webkit` on Travis CI's Linux. A former ENOENT error is expected to be replaced by a node-webkit's error when the engine realises it's given a node-sqlite3 module's JavaScript instead of some HTML5 application.
-
update node-pre-gyp's source branch
Commit Mithgol/node-pre-gyp@eaea6e1 is now included in the node-pre-gyp's source used here.
-
-
-
-
This commit also erases `sudo apt-get update --fix-missing` introduced in one of the previous commits, because it didn't help.
-
-
-
Follow the following suggestion: http://askubuntu.com/questions/363878/how-to-install-32-bit-matlab-in-ubuntu-64-bit/363879#363879
-
-
install 32 bit stuff necessary for node-webkit 32 bit
Used “Search the contents of packages” at http://packages.ubuntu.com/
-
Found in “Search the contents of packages” at http://packages.ubuntu.com/ using “lucid” distribution (instead of default “saucy”). This commit runs one `sudo apt-get -y install` for every package; otherwise each failure stops the whole installation process, but that makes the debugging painful (a test takes 13 minutes to run).
-
do not install
libpangocairo:i386
andlibpango:i386
Two packages not found → removing.
-
The following `npm install` takes more than 3 seconds anyway; `xvfb` would already start before it becomes necessary for node-webkit.