Skip to content

Commit

Permalink
Enable Travis for Linux, Mac and Windows (#24)
Browse files Browse the repository at this point in the history
* Enable Travis for Linux, Mac and Windows

* Travis badge

* Fix standard

* Install windows-build-tools

* Actually, bye bye node 6
  • Loading branch information
ralphtheninja committed Jan 25, 2019
1 parent ffb6aef commit d961d38
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js

os:
- osx
- windows
- linux

node_js:
- 8
- 10
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# prebuildify

Create and package prebuilds for native modules
> Create and package prebuilds for native modules
```
npm install -g prebuildify
```

[![Build Status](https://travis-ci.org/prebuild/prebuildify.svg?branch=master)](https://travis-ci.org/prebuild/prebuildify)

## Usage

First go to your native module and make a bunch of prebuilds
Expand Down
2 changes: 1 addition & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (argv.all) {
if (argv.napi && targets.length === 0) {
targets = [
abi.supportedTargets.filter(onlyNode).pop(),
abi.supportedTargets.filter(onlyElectron).pop(),
abi.supportedTargets.filter(onlyElectron).pop()
]

if (targets[0].target === '9.0.0') targets[0].target = '9.6.1'
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function strip (file, opts, cb) {

var args = opts.platform === 'darwin' ? [file, '-Sx'] : [file, '--strip-all']
var stripBin = process.env.STRIP || 'strip'
var child = proc.spawn(stripBin, args, { stdio: 'ignore'})
var child = proc.spawn(stripBin, args, {stdio: 'ignore'})

child.on('exit', function (code) {
if (code) return cb(spawnError('strip', code))
Expand Down

0 comments on commit d961d38

Please sign in to comment.