Skip to content

Commit

Permalink
Use prebuildify (#549)
Browse files Browse the repository at this point in the history
* Use prebuildify

* Remove 11, since current is 11

* Remove git-core workaround in appveyor

* Remove --verbose, too noisy

* Use $PREBUILD_TOKEN env var defined in Travis UI

* Do not mark releases as pre-release

* Update appveyor.yml

Co-Authored-By: ralphtheninja <ralphtheninja@riseup.net>

* Remove prerelease from appveyor as well
  • Loading branch information
ralphtheninja committed Dec 15, 2018
1 parent c2fefcf commit 45cab1c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 16 deletions.
22 changes: 18 additions & 4 deletions .travis.yml
Expand Up @@ -2,9 +2,6 @@ sudo: false

language: node_js

before_install:
- export JOBS=max

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'
28 changes: 25 additions & 3 deletions appveyor.yml
@@ -1,22 +1,44 @@
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"

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
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

0 comments on commit 45cab1c

Please sign in to comment.