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

Use prebuildify #549

Merged
merged 8 commits into from Dec 15, 2018
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 18 additions & 4 deletions .travis.yml
Expand Up @@ -2,9 +2,6 @@ sudo: false

language: node_js

before_install:
- export JOBS=max
vweevers marked this conversation as resolved.
Show resolved Hide resolved

os:
- osx
- linux
Expand All @@ -13,5 +10,22 @@ node_js:
- 6
- 8
- 10
- node

after_success:
- npm run coverage

before_deploy:
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
- npm run prebuild
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .

after_success: npm run coverage
deploy:
provider: releases
draft: false
api_key: "$PREBUILD_TOKEN"
file: "$ARCHIVE_NAME"
skip_cleanup: true
on:
tags: true
node: 'node'
29 changes: 26 additions & 3 deletions appveyor.yml
@@ -1,22 +1,45 @@
version: "{build}"
build: off
skip_tags: true
build: false
skip_branch_with_pr: true

environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "Current"
ralphtheninja marked this conversation as resolved.
Show resolved Hide resolved

configuration: Release
platform:
- x86
- x64

install:
- SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;%PATH%
- ps: Install-Product node $env:nodejs_version $env:platform
- set PATH=%APPDATA%\npm;%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%PATH%
- git submodule update --init --recursive
- npm i

test_script:
- node --version
- npm --version
- npm test

after_test:
- ps: If ($env:nodejs_version -eq "Current") { npm run prebuild }

artifacts:
- path: prebuilds
name: $(APPVEYOR_REPO_TAG_NAME)-win-$(PLATFORM)
type: zip

deploy:
- provider: GitHub
artifact: /.*\.zip/
auth_token:
secure: AjmYV2zeogfen7F6tXvR9PO1zynJVF/jhMCExQ9RMtqEHDMH8Frclym3GniZkEB0
draft: false
prerelease: true
ralphtheninja marked this conversation as resolved.
Show resolved Hide resolved
on:
appveyor_repo_tag: true
nodejs_version: "Current"
16 changes: 7 additions & 9 deletions package.json
Expand Up @@ -17,8 +17,7 @@
"bindings": "~1.3.0",
"fast-future": "~1.0.2",
"napi-macros": "^1.8.1",
"node-gyp-build": "^3.5.1",
"prebuild-install": "^5.0.0"
"node-gyp-build": "^3.5.1"
},
"devDependencies": {
"async": "^2.0.1",
Expand All @@ -28,10 +27,10 @@
"level-concat-iterator": "^2.0.0",
"mkfiletree": "~1.0.1",
"monotonic-timestamp": "~0.0.8",
"node-gyp": "^3.8.0",
"nyc": "^12.0.2",
"optimist": "~0.6.1",
"prebuild": "^8.0.0",
"prebuild-ci": "^2.0.0",
"prebuildify": "^2.9.1",
"readfiletree": "~0.0.1",
"remark-cli": "^5.0.0",
"remark-github": "^7.0.3",
Expand All @@ -40,15 +39,14 @@
"standard": "^12.0.0",
"tape": "^4.5.1",
"tempy": "^0.2.1",
"uuid": "^3.2.1",
"verify-travis-appveyor": "^3.0.0"
"uuid": "^3.2.1"
},
"scripts": {
"install": "node-gyp-build",
"test": "standard && verify-travis-appveyor && nyc tape test/*-test.js && prebuild-ci",
"test": "standard && nyc tape test/*-test.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"rebuild": "prebuild --compile",
"prebuild": "prebuild --all --strip --verbose",
"rebuild": "node-gyp rebuild",
"prebuild": "prebuildify --napi --strip",
"changelog": "remark CHANGELOG.md -o"
},
"remarkConfig": {
Expand Down