This repository has been archived by the owner on Oct 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(npm): integrate with semantic-release SHELL-1528
- Loading branch information
Showing
2 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
language: node_js | ||
node_js: | ||
- "6" | ||
- 8.11.2 | ||
- '9' | ||
services: | ||
- docker | ||
before_install: | ||
- git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
- |- | ||
if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "master" ]; | ||
then | ||
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc; | ||
else | ||
echo "//registry.npmjs.org/:_authToken=\${NPM_INSTALL_TOKEN}" > ~/.npmrc; | ||
fi | ||
- 'git config --global url."[email protected]:".insteadOf "https://github.com/"' | ||
- npm install -g lsc nsp | ||
- docker build -t services-cache ./run | ||
- docker run -d -p 6379:6379 services-cache | ||
- 'docker run -d -p 6379:6379 services-cache' | ||
install: | ||
- npm install | ||
script: | ||
- nsp check | ||
- npm test | ||
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm install -g codacy-coverage && npm run coverage && cat ./coverage/lcov.info ./test/ui/coverage/lcov.info | codacy-coverage && rm -rf ./coverage; fi | ||
- >- | ||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm install -g | ||
codacy-coverage && npm run coverage && cat ./coverage/lcov.info | ||
./test/ui/coverage/lcov.info | codacy-coverage && rm -rf ./coverage; fi | ||
cache: | ||
directories: | ||
- ~/.npm | ||
notifications: | ||
email: false | ||
after_success: | ||
- npm run travis-deploy-once "npm run semantic-release" | ||
branches: | ||
except: | ||
- /^vd+.d+.d+$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters