Skip to content

Commit

Permalink
updated CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-nic committed Sep 14, 2021
1 parent 9b53ab6 commit 82ade45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=$LINUX_CXX; $CXX --version;
fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then c++ --version; fi;
- npm install -g npm@latest
- npm install -g npm@latest prebuildify node-gyp

install: true

script:
- npm test
- "./node_modules/.bin/node-pre-gyp configure"
- "./node_modules/.bin/node-pre-gyp build"
- "./node_modules/.bin/node-pre-gyp package"
- npm run build
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
Expand Down
12 changes: 7 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,28 @@ install:
- where npm
- where node
- ps: Install-Product node $env:nodejs_version $env:platform
- 'npm install -g npm@latest'
- 'npm install -g npm@latest prebuildify node-gyp'

build: off

artifacts:
- path: 'build/stage/**/bcrypt*.tar.gz'
- path: './bcrypt*.tgz'

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

after_test:
- .\node_modules\.bin\node-pre-gyp package
- npm run build
- npm run pack

on_success:
- ps: >
if ($env:NODE_PRE_GYP_GITHUB_TOKEN -ne $null -and $env:APPVEYOR_REPO_TAG_NAME -match '^v(0|[1-9]+)\.(0|[1-9]+)\.(0|[1-9]+)(-\w)?$') {
echo "Publishing $env:APPVEYOR_REPO_TAG_NAME"
npm install node-pre-gyp-github@1.4.3
./node_modules/.bin/node-pre-gyp-github publish --release
## TODO CONFIGURE FOR GITHUB NPM REGISTRY ###
## See https://docs.github.com/en/actions/guides/publishing-nodejs-packages#publishing-packages-to-github-packages
npm publish
}

0 comments on commit 82ade45

Please sign in to comment.