Skip to content

Commit 82ade45

Browse files
committed
updated CI scripts
1 parent 9b53ab6 commit 82ade45

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ before_install:
3535
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=$LINUX_CXX; $CXX --version;
3636
fi;
3737
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then c++ --version; fi;
38-
- npm install -g npm@latest
38+
- npm install -g npm@latest prebuildify node-gyp
3939

4040
install: true
4141

4242
script:
4343
- npm test
44-
- "./node_modules/.bin/node-pre-gyp configure"
45-
- "./node_modules/.bin/node-pre-gyp build"
46-
- "./node_modules/.bin/node-pre-gyp package"
44+
- npm run build
4745
- |
4846
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
4947
then

appveyor.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,28 @@ install:
2525
- where npm
2626
- where node
2727
- ps: Install-Product node $env:nodejs_version $env:platform
28-
- 'npm install -g npm@latest'
28+
- 'npm install -g npm@latest prebuildify node-gyp'
2929

3030
build: off
3131

3232
artifacts:
33-
- path: 'build/stage/**/bcrypt*.tar.gz'
33+
- path: './bcrypt*.tgz'
3434

3535
test_script:
3636
- node --version
3737
- npm --version
3838
- npm test
3939

4040
after_test:
41-
- .\node_modules\.bin\node-pre-gyp package
41+
- npm run build
42+
- npm run pack
4243

4344
on_success:
4445
- ps: >
4546
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)?$') {
4647
echo "Publishing $env:APPVEYOR_REPO_TAG_NAME"
47-
npm install [email protected]
48-
./node_modules/.bin/node-pre-gyp-github publish --release
48+
## TODO CONFIGURE FOR GITHUB NPM REGISTRY ###
49+
## See https://docs.github.com/en/actions/guides/publishing-nodejs-packages#publishing-packages-to-github-packages
50+
npm publish
4951
}
5052

0 commit comments

Comments
 (0)