From f9953f2a16cd3661fdaa5bcf3a5b2972a793aff8 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sun, 6 May 2018 02:04:21 -0400 Subject: [PATCH] fix: build isn't using the right version on 32x (#1564) --- .travis.yml | 7 ++++--- README.md | 2 +- docs/index.html | 22 ++++++++++++++++------ 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4ad0c9c37..b8e580659 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,10 +37,13 @@ matrix: env: TRAVIS_NODE_VERSION="9" ARCH="x86" - os: osx env: TRAVIS_NODE_VERSION="10" ARCH="x86" + - os: linux + env: TRAVIS_NODE_VERSION="10" ARCH="x86" before_install: # download node if testing x86 architecture +- nvm install $TRAVIS_NODE_VERSION - > if [[ "$ARCH" == "x86" ]]; then BASE_URL=$(node -p "'https://nodejs.org/dist/' + process.version"); @@ -48,9 +51,7 @@ before_install: wget $BASE_URL/$X86_FILE.tar.gz; tar -xf $X86_FILE.tar.gz; nvm deactivate; - export PATH=$X86_FILE/bin:$PATH; - else - nvm install $TRAVIS_NODE_VERSION + export PATH=`pwd`/$X86_FILE/bin:$PATH; fi; # use g++-4.8 on Linux diff --git a/README.md b/README.md index 909533c56..fa813b1b4 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ In addition to reading the [article mentioned above](http://www.voodootikigod.co | Platform / Arch | Node v4.x | Node v6.x | Node v8.x | Node v9.x | Node v10.x | | --- | --- | --- | --- | --- | --- | -| Linux / ia32 | ☑ | ☑ | ☑ | ☑ | ☑ | +| Linux / ia32 | ☑ | ☑ | ☑ | ☑ | ☐ | | Linux / x64 | ☑ | ☑ | ☑ | ☑ | ☑ | | Linux / ARM v6¹ | ☐ | ☐ | ☐ | ☐ | ☐ | | Linux / ARM v7¹ | ☐ | ☐ | ☐ | ☐ | ☐ | diff --git a/docs/index.html b/docs/index.html index b316ddbfd..4e982d7db 100644 --- a/docs/index.html +++ b/docs/index.html @@ -122,6 +122,7 @@

Platform Support

serialport supports NodeJS v4 and upwar Node v6.x Node v8.x Node v9.x +Node v10.x @@ -130,6 +131,7 @@

Platform Support

serialport supports NodeJS v4 and upwar ☑ ☑ ☑ +☑ ☐ @@ -137,7 +139,8 @@

Platform Support

serialport supports NodeJS v4 and upwar ☑ ☑ ☑ -☐ +☑ +☑ Linux / ARM v6¹ @@ -145,6 +148,7 @@

Platform Support

serialport supports NodeJS v4 and upwar ☐ ☐ ☐ +☐ Linux / ARM v7¹ @@ -152,6 +156,7 @@

Platform Support

serialport supports NodeJS v4 and upwar ☐ ☐ ☐ +☐ Linux / ARM v8¹ @@ -159,6 +164,7 @@

Platform Support

serialport supports NodeJS v4 and upwar ☐ ☐ ☐ +☐ Linux / MIPSel¹ @@ -166,6 +172,7 @@

Platform Support

serialport supports NodeJS v4 and upwar ☐ ☐ ☐ +☐ Linux / PPC64¹ @@ -173,34 +180,37 @@

Platform Support

serialport supports NodeJS v4 and upwar ☐ ☐ ☐ +☐ Windows² / x86 ☐ ☑ ☑ -☐ +☑ +☑ Windows² / x64 ☑ ☑ ☑ -☐ +☑ +☑ OSX³ / x64 ☑ ☑ ☑ -☐ +☑ +☑

¹ ARM, MIPSel and PPC64¹ platforms are not currently part of our testing or build matrix, but are known to work.

² Windows 7, 8, 10, and 10 IoT are supported, but our CI tests only Windows Server 2012 R2.

³ OSX 10.4 Tiger and above are supported, but our CI tests only 10.9.5 Mavericks with Xcode 6.1.

-

⁴ Node 9 is not supported but we're providing builds for it.

Installation Instructions

For most "standard" use cases (Node v4.x on Mac, Linux, or Windows on a x86 or x64 processor), Node-Serialport will install nice and easy with:

npm install serialport

Installation Special Cases

We use prebuild to compile and post binaries of the library for most common use cases (Linux, Mac, Windows on standard processor platforms). If you have a special case, Node-Serialport will work, but it will compile the binary during the install. Compiling with nodejs is done via node-gyp which requires Python 2.x, so please ensure you have it installed and in your path for all operating systems. Python 3.x will not work.

This assumes you have everything on your system necessary to compile ANY native module for Node.js. If you don't, then please ensure the following are true for your system before filing a "Does not install" issue.

@@ -480,7 +490,7 @@

Serial Port List

serialport-list will list all available