Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
feat(npm): integrate with semantic-release SHELL-1528
Browse files Browse the repository at this point in the history
  • Loading branch information
KalleV committed Jun 9, 2018
1 parent ee5a118 commit 5ec5dbd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 7 deletions.
29 changes: 25 additions & 4 deletions .travis.yml
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+$/
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,22 @@
"@commitlint/cli": "^6.2.0",
"@commitlint/config-conventional": "^6.1.3",
"husky": "^0.14.3",
"coveralls": "^3.0.1"
"coveralls": "^3.0.1",
"@labshare/semantic-release-config": "^1.0.0",
"travis-deploy-once": "^5.0.0",
"semantic-release": "^15.5.0"
},
"scripts": {
"test": "jasmine JASMINE_CONFIG_PATH=./test/lib/jasmine.json",
"coverage": "istanbul cover jasmine JASMINE_CONFIG_PATH=./test/lib/jasmine.json",
"commitmsg": "commitlint -e $GIT_PARAMS"
"commitmsg": "commitlint -e $GIT_PARAMS",
"travis-deploy-once": "travis-deploy-once --pro",
"semantic-release": "semantic-release"
},
"publishConfig": {
"access": "restricted"
},
"release": {
"extends": "@labshare/semantic-release-config"
}
}
}

0 comments on commit 5ec5dbd

Please sign in to comment.