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

Commit

Permalink
build(travis): add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Abimbola Idowu committed Jun 4, 2017
1 parent 443d7f9 commit b341391
Show file tree
Hide file tree
Showing 3 changed files with 1,547 additions and 844 deletions.
40 changes: 35 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
sudo: false

language: node_js

cache:
directories:
- node_modules

notifications:
email: false

node_js:
- '4'
- '6'
- '7'
- '6'
- '4'

branches:
only:
- master

before_script:
- npm prune

script:
- npm run coverage
- npm run check-coverage
- npm run codecov
- npm run coverage
- npm run check-coverage

after_success:
- npm run codecov
- npm run semantic-release

branches:
except:
- /^v\d+\.\d+\.\d+$/

git:
depth: 1

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slack-history-export",
"version": "0.4.1",
"version": "0.0.0-development",
"description": "Command line module to export slack history",
"keywords": [
"slack",
Expand All @@ -16,7 +16,7 @@
"main": "",
"repository": {
"type": "git",
"url": "git+https://github.com/hisabimbola/slack-history-export.git"
"url": "https://github.com/hisabimbola/slack-history-export.git"
},
"bin": {
"slack-history-export": "bin/cli.js"
Expand All @@ -34,7 +34,8 @@
"check-coverage": "nyc check-coverage --lines 100 --functions 100 --branches 100",
"local": "npm run clean && npm run build && node bin/cli.js",
"coverage:html": "npm run lint && cross-env NODE_ENV=test nyc --reporter=html npm test",
"lint": "./scripts/lint src test"
"lint": "./scripts/lint src test",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"config": {
"commitizen": {
Expand Down Expand Up @@ -81,6 +82,7 @@
"ghooks": "^1.3.2",
"nyc": "^8.1.0",
"rimraf": "^2.6.1",
"semantic-release": "^6.3.6",
"sinon": "^1.17.6",
"streamtest": "^1.2.2",
"tap-spec": "^4.1.1",
Expand Down
Loading

0 comments on commit b341391

Please sign in to comment.