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

fix(release): fix semantic release configuration with Travis CI #44

Merged
merged 3 commits into from
Jun 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
language: node_js
node_js:
- 8.11.2
- '9'
- lts/*
- node
services:
- docker
before_install:
- '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'
install:
- npm install
script:
- nsp check
- npm run coverage
Expand All @@ -20,8 +18,8 @@ cache:
- ~/.npm
notifications:
email: false
after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/
after_success:
- npm run semantic-release
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,15 @@
"husky": "^0.14.3",
"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",
"travis-deploy-once": "travis-deploy-once --pro",
"semantic-release": "semantic-release"
},
"publishConfig": {
"access": "restricted"
},
"release": {
"extends": "@labshare/semantic-release-config"
},
"peerDependencies": {}
}
}