Skip to content

Commit

Permalink
build: remove unnecessary NAPI_VERSION pre-definition on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Sep 22, 2019
1 parent 02da369 commit 8757704
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ install:
script:
# Travis CI sets NVM_NODEJS_ORG_MIRROR, but it makes node-gyp fail to download headers for nightly builds.
- unset NVM_NODEJS_ORG_MIRROR
- NODEJS_MAJOR_VERSION=$(node -p "process.versions.node.match(/\d+/)[0]")

- |
if [ ${NODEJS_MAJOR_VERSION} -gt 11 ]; then
npm test
else
npm test $NPMOPT --NAPI_VERSION=$(node -p "process.versions.napi")
fi
- npm test
after_success:
- cpp-coveralls --gcov-options '\-lp' --build-root test/build --exclude test

0 comments on commit 8757704

Please sign in to comment.