diff --git a/.travis.yml b/.travis.yml index c478492e..e61bced2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -109,7 +109,6 @@ before_install: script: - npm install -- npm run dev - npm run package-prebuilt - echo tag=$TRAVIS_TAG pullrequest=$TRAVIS_PULL_REQUEST - | @@ -120,7 +119,7 @@ script: notifications: webhooks: urls: - - https://wayland_jenkins:11abca8370e8bd07ce599ad14fde0916f3@yj24xki8lrdhf3wl.v1.p.beameio.net/view/pc-ble-driver-js/job/pc-ble-driver-js/buildWithParameters?BRANCH=v2.5.0 + - https://wayland_jenkins:11abca8370e8bd07ce599ad14fde0916f3@yj24xki8lrdhf3wl.v1.p.beameio.net/view/pc-ble-driver-js/job/pc-ble-driver-js/build on_success: always # default: always on_failure: never # default: always on_start: never # default: never diff --git a/package.json b/package.json index dae45965..371f22ee 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "publish-prebuilt": "node-pre-gyp-github publish", "publish-all-prebuilt": "node scripts/publish-all-prebuilt.js", "fetch-prebuilt": "node scripts/pre-gyp-fetch-draft.js", - "dev": "node-pre-gyp install --fallback-to-build=false || node build.js", + "install": "npm run fetch-prebuilt || node-pre-gyp install --fallback-to-build=false || node build.js", "test": "jest --config config/jest-unit.json", "docs": "jsdoc api -t node_modules/minami -R README.md -d docs -c .jsdoc.json" }, diff --git a/scripts/pre-gyp-fetch-draft.js b/scripts/pre-gyp-fetch-draft.js index 892df6b0..42996681 100644 --- a/scripts/pre-gyp-fetch-draft.js +++ b/scripts/pre-gyp-fetch-draft.js @@ -41,9 +41,9 @@ const path = require('path'); const pkgJson = require('../package.json'); const mkdirp = require('mkdirp'); -// if (!process.env.ENABLE_DRAFT_TEST) { -// process.exit(1); -// } +if (!process.env.ENABLE_DRAFT_TEST) { + process.exit(1); +} const ghToken = process.env.NODE_PRE_GYP_GITHUB_TOKEN;