Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Prebuild binaries #126

Closed
wants to merge 3 commits into from
Closed
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ node_modules/
npm-debug.log

package-lock.json

prebuilds/
iojs-*/
8.*/
6.*/
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ spec/
npm-debug.log
appveyor.yml
.travis.yml

prebuilds/
iojs-*/
8.*/
6.*/
49 changes: 35 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,50 @@ os:
- linux
- osx

language: node_js
node_js:
- 8
- 10
- 12

services:
- docker

cache:
directories:
- node_modules

install:
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install $NODE_VERSION
- node --version
- npm install

script: npm test
script:
- npm test

sudo: false
#
# We have our deployment set up to run on master/node 12, and only run the
# upload step on tag builds. We set it up this way so master builds will always
# check that the prebuilding is successful, and we don't end up with a nasty
# build failure surprise *after* having already tagged a build.
#
before_deploy:
- npm run prebuild-node
- npm run prebuild-electron

deploy:
provider: script
script: if [ -n "$TRAVIS_TAG" ]; then npm run upload; fi
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|v[0-9]+\.[0-9]+(\.[0-9]+)?(-\S*)?)$
node_js: '12'

sudo: required

git:
depth: 10

branches:
only:
- master

env:
global:
- CC=clang CXX=clang++ npm_config_clang=1
matrix:
- NODE_VERSION=8.9.3
- NODE_VERSION=10
- NODE_VERSION=12
34 changes: 30 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
environment:
matrix:
- nodejs_version: '8'
- nodejs_version: '10'
- nodejs_version: '10'
- nodejs_version: '12'
SPELLCHECKER_PREFER_HUNSPELL: true
- nodejs_version: '8'
- nodejs_version: '12'
DO_PREBUILD: true

install:
- ps: Install-Product node $env:nodejs_version
- ps: Install-Product node $env:nodejs_version x64
- npm --msvs_version=2015 install

test_script:
Expand All @@ -15,4 +17,28 @@ test_script:
- ps: Write-Host $env:SPELLCHECKER_PREFER_HUNSPELL
- npm test

build: off
#
# We have our deployment set up to run on the master branch or tags (via the
# for: config) and our DO_PREBUILD job (via environment variable checks), and
# only run the upload step on tag builds (also via an environment variable
# check). We set it up this way so master builds will always check that
# the prebuilding is successful, and we don't end up with a nasty build failure
# surprise *after* having already tagged a build.
#
for:
-
branches:
except:
- /^(master|v\d+\.\d+(\.\d+)?(-\S*)?)$/
deploy: off

before_deploy:
- if defined DO_PREBUILD (npm run prebuild-node)
- if defined DO_PREBUILD (npm run prebuild-node-ia32)
- if defined DO_PREBUILD (npm run prebuild-electron)
- if defined DO_PREBUILD (npm run prebuild-electron-ia32)

deploy_script:
- if defined DO_PREBUILD if defined APPVEYOR_REPO_TAG_NAME (npm run upload)

build: off
Loading