Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict"

module.exports = {
spec: ["test/*.js"],
"v8-expose-gc": true,
recursive: true,
}
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
sudo: false

env:
- CXX=g++-4.9
- CXX=g++
- CXX=clang++

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- g++

language: node_js

Expand All @@ -20,19 +20,18 @@ os:
osx_image: xcode10

node_js:
- "10"
- "12"
- "14"
- "22"

jobs:
include:
- os: linux
arch: arm64
node_js: 12
env: CXX=g++-4.9
env: CXX=g++
exclude:
- os: osx
env: CXX=g++-4.9
env: CXX=g++
- os: linux
env: CXX=clang++

Expand Down
10 changes: 7 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ environment:
# Test against these versions of Node.js and io.js
matrix:
# node.js
- nodejs_version: "10"
- nodejs_version: "12"
llvm_version: "0.0"
- nodejs_version: "22"
llvm_version: "0.0"

platform:
- x86
Expand All @@ -16,9 +18,11 @@ platform:
install:
- python -V
- set PYTHON=python

- ps: Install-Product node $env:nodejs_version $env:platform
- node -p process.arch
- node -p process.version

- npm install --build-from-source

# Post-install test scripts.
Expand All @@ -33,15 +37,15 @@ after_test:
- ps: If ($env:nodejs_version -eq "12") { npm run prebuild --v8_enable_pointer_compression=false --v8_enable_31bit_smis_on_64bit_arch=false }

# Don't actually build.
build: off
build: false

# Set build version format here instead of in the admin panel.
version: "{build}"

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

deploy:
- provider: GitHub
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
},
"main": "lib/weak.js",
"scripts": {
"test": "nyc mocha --expose-gc",
"test": "nyc mocha",
"install": "node-gyp-build",
"prebuild": "prebuildify --napi --tag-armv --tag-uv",
"prepack": "prebuildify-ci download && ([ $(ls prebuilds | wc -l) = '5' ] || (echo 'Some prebuilds are missing'; exit 1))"
},
"dependencies": {
"node-addon-api": "^3.0.0",
"node-gyp-build": "^4.2.1",
"setimmediate-napi": "^1.0.3"
"node-addon-api": "^8.0.0",
"node-gyp-build": "^4.8.1",
"setimmediate-napi": "^1.0.6"
},
"devDependencies": {
"mocha": "^7.1.1",
"nyc": "^15.0.0",
"prebuildify": "^3.0.4",
"mocha": "^10.4.0",
"nyc": "^17.0.0",
"prebuildify": "^6.0.1",
"prebuildify-ci": "^1.0.5"
}
}