Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

add prebuild support to generate native modules #13

Merged
merged 12 commits into from
Aug 6, 2019
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/build
/docker
/script
/test
*.log
*~
Expand Down
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ sudo: false
language: node_js

node_js:
- "8"
- "10"
- "11"
- "12"

services:
- docker

env:
- CC=clang CXX=clang++ npm_config_clang=1

script: npm test
script:
- npm test
- npm run prebuild-node
- npm run prebuild-electron
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t node-fs-admin/i386 docker/i386 && docker run --rm -v ${PWD}:/project node-fs-admin/i386 /bin/bash -c "cd /project && npm run prebuild-node-ia32 && npm run prebuild-electron-ia32"; fi
- if [[ -n "$TRAVIS_TAG" ]]; then npm run upload; fi

branches:
only:
Expand Down
16 changes: 8 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ image: Visual Studio 2015

environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "11"
- nodejs_version: "12"

platform:
- x86
- x64

install:
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
- npm install

test_script:
- node --version
- npm --version
build_script:
- npm test
- npm run prebuild-node
- npm run prebuild-node-ia32
- npm run prebuild-electron
- npm run prebuild-electron-ia32
- if defined APPVEYOR_REPO_TAG_NAME (npm run upload)

build: off
test: off
deploy: off

branches:
only:
Expand Down
17 changes: 17 additions & 0 deletions docker/i386/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM i386/debian:stretch

RUN apt-get update
RUN apt-get install --quiet --yes \
build-essential \
curl \
pkg-config \
clang \
python \
libsecret-1-dev

RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install -y nodejs

ENV CC clang
ENV CXX clang++
ENV npm_config_clang 1
Loading