Skip to content
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

Merged
merged 29 commits into from Feb 13, 2014
Merged

Build node-sqlite3 for node-webkit on Travis CI #252

merged 29 commits into from Feb 13, 2014

Commits on Feb 6, 2014

  1. 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.
    Mithgol committed Feb 6, 2014
    Copy the full SHA
    a9555b4 View commit details
    Browse the repository at this point in the history
  2. 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.
    Mithgol committed Feb 6, 2014
    Copy the full SHA
    31a11de View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    6903cde View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    20ed666 View commit details
    Browse the repository at this point in the history
  5. 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.
    Mithgol committed Feb 6, 2014
    Copy the full SHA
    c894e47 View commit details
    Browse the repository at this point in the history
  6. 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.
    Mithgol committed Feb 6, 2014
    Copy the full SHA
    4f6db19 View commit details
    Browse the repository at this point in the history
  7. 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.
    Mithgol committed Feb 6, 2014
    Copy the full SHA
    5992e97 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2014

  1. added --runtime=node-webkit --overwrite twice

    Try a feature originally introduced in node-pre-gyp v0.4.2 commit mapbox/node-pre-gyp@370024a for mapbox/node-pre-gyp#14.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    e3324ce View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ff08389 View commit details
    Browse the repository at this point in the history
  3. 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.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    7dc529b View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    b580a1d View commit details
    Browse the repository at this point in the history
  5. 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.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    738aaf6 View commit details
    Browse the repository at this point in the history
  6. 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.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    6655d7c View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    a86e300 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    6fc9166 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    65280f0 View commit details
    Browse the repository at this point in the history
  10. also install libx11-6

    Mithgol committed Feb 13, 2014
    Copy the full SHA
    65be174 View commit details
    Browse the repository at this point in the history
  11. try installing libx11-dev

    Mithgol committed Feb 13, 2014
    Copy the full SHA
    ccf56f4 View commit details
    Browse the repository at this point in the history
  12. sudo apt-get update --fix-missing

    More magic.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    05d7f8c View commit details
    Browse the repository at this point in the history
  13. save and restore PATH

    Mithgol committed Feb 13, 2014
    Copy the full SHA
    fcdc43a View commit details
    Browse the repository at this point in the history
  14. attempt ldd

    This commit also erases `sudo apt-get update --fix-missing` introduced in one of the previous commits, because it didn't help.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    e370b9c View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    54f460b View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    8b83d45 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    6dbb9d9 View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    0713dce View commit details
    Browse the repository at this point in the history
  19. install 32 bit stuff necessary for node-webkit 32 bit

    Used “Search the contents of packages” at http://packages.ubuntu.com/
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    354766a View commit details
    Browse the repository at this point in the history
  20. also install libudev0:i386

    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).
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    469d879 View commit details
    Browse the repository at this point in the history
  21. do not install libpangocairo:i386 and libpango:i386

    Two packages not found → removing.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    9c555c3 View commit details
    Browse the repository at this point in the history
  22. remove sleep 3

    The following `npm install` takes more than 3 seconds anyway; `xvfb` would already start before it becomes necessary for node-webkit.
    Mithgol committed Feb 13, 2014
    Copy the full SHA
    e367dac View commit details
    Browse the repository at this point in the history