From 4a7e15dfc3d504fd63b8edf3342b48ea38285bf1 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sat, 11 Jun 2016 16:09:36 -0400 Subject: [PATCH] Possibly fix 32 bit binaries (#848) --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5478b9b..032db48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,14 @@ before_install: - nvm install $TRAVIS_NODE_VERSION - PATH=$PATH:`pwd`/node_modules/.bin +- BASE_URL=$(node -p "'https://nodejs.org/dist/' + process.version") +- X86_FILE=$(node -p "'node-' + process.version + '-' + process.platform + '-x86'") +# download node if testing x86 architecture +- if [[ "$ARCH" == "x86" ]]; then wget $BASE_URL/$X86_FILE.tar.gz; tar -xf $X86_FILE.tar.gz; export PATH=$X86_FILE/bin:$PATH; fi + # print versions +- uname -a +- file `which node` - node --version - node -p 'process.platform + "@" + process.arch' - npm --version