Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ 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" .
- ./scripts/travis-before-deploy

deploy:
provider: releases
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ install:
- set PATH=%APPDATA%\npm;%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%PATH%
- git submodule update --init --recursive
- npm i
- SET
Comment thread
vweevers marked this conversation as resolved.
Outdated

test_script:
- node --version
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
"download-prebuilds": "prebuildify-ci download",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check . test/*.js bench/*.js",
"prepublishOnly": "npm run dependency-check"
"prepublishOnly": "npm run dependency-check",
"prebuildify-cross-armv7": "prebuildify-cross --platform=linux --arch=arm --arm-version=7 -- -t 8.14.0 --napi --strip"
},
"dependencies": {
"abstract-leveldown": "~6.0.0",
"fast-future": "~1.0.2",
"napi-macros": "~1.8.1",
"node-gyp-build": "~3.7.0"
"node-gyp-build": "~3.8.0"
},
"devDependencies": {
"async": "^2.0.1",
Expand All @@ -35,8 +36,9 @@
"node-gyp": "^3.8.0",
"nyc": "^12.0.2",
"optimist": "~0.6.1",
"prebuildify": "^2.10.0",
"prebuildify": "prebuild/prebuildify#override-platform",
"prebuildify-ci": "^1.0.4",
"prebuildify-cross": "ralphtheninja/prebuildify-cross#TARGET_PLATFORM",
"readfiletree": "~0.0.1",
"rimraf": "^2.6.1",
"slump": "^3.0.0",
Expand Down
17 changes: 17 additions & 0 deletions scripts/travis-before-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -ex
Comment thread
vweevers marked this conversation as resolved.
Outdated

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
ARCHIVE_NAME="${TRAVIS_TAG:-latest}-linux-and-cross-compiled.tar"
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
ARCHIVE_NAME="${TRAVIS_TAG:-latest}-osx-`uname -m`.tar"
fi

npm run prebuild

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
npm run prebuildify-cross-armv7
fi

tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .