Skip to content

Commit

Permalink
chore(release): Add semantic release and commitizen to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Jun 7, 2016
1 parent 21f0a58 commit 29db6a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: node_js
cache:
directories:
- node_modules

node_js:
- "5"
Expand All @@ -13,6 +15,10 @@ services:
- mysql
- postgresql

before_install:
- npm i -g npm@^2.0.0
- npm prune

before_script:
- mysql -uroot -e 'CREATE DATABASE streamer_test;'
- mysql -uroot -e "GRANT ALL PRIVILEGES ON streamer_test.* TO 'streamer'@'localhost' IDENTIFIED BY 'streamer1234';"
Expand All @@ -32,4 +38,11 @@ matrix:
allow_failures:
- node_js: "0.12"
env: COVERAGE=true
script: "npm run codeclimate"
script: "npm run codeclimate"

after_success:
- npm run semantic-release

branches:
except:
- /^v\d+\.\d+\.\d+$/
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "db-streamer",
"version": "0.4.2",
"version": "0.0.0-semantically-released",
"description": "A library to stream data into a SQL database.",
"main": "index.js",
"scripts": {
Expand All @@ -17,11 +17,12 @@
"premerge-coverage": "node scripts/preMerge.js",
"merge-coverage": "./node_modules/.bin/lcov-result-merger \"coverage-*/lcov.info\" \"coverage/lcov.info\"",
"codeclimate-send": "cross-env CODECLIMATE_REPO_TOKEN=b02fd8c72b40135e6a9173ef6cb43672b1274a14375e7c4a83837bc13c4c2f43 ./node_modules/.bin/codeclimate-test-reporter < coverage/lcov.info",
"codeclimate": "npm run cover-all && npm run codeclimate-send"
"codeclimate": "npm run cover-all && npm run codeclimate-send",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/evansiroky/db-streamer.git"
"url": "https://github.com/evansiroky/db-streamer.git"
},
"keywords": [
"database",
Expand All @@ -44,6 +45,7 @@
"chai": "^3.5.0",
"codeclimate-test-reporter": "^0.3.1",
"cross-env": "^1.0.7",
"cz-conventional-changelog": "^1.1.6",
"istanbul": "^0.4.2",
"lcov-result-merger": "^1.0.2",
"mocha": "^2.5.1",
Expand All @@ -52,7 +54,13 @@
"pg-copy-streams": "^1.0.0",
"pg-hstore": "^2.3.2",
"rimraf": "^2.5.2",
"semantic-release": "^4.3.5",
"sequelize": "^3.9.0",
"streamsql": "^0.8.5"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 29db6a3

Please sign in to comment.