Skip to content

Commit

Permalink
setup ci and semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 7, 2017
1 parent 37b3701 commit f1047ce
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: true
node_js:
- '6'
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "focha",
"description": "Mocha wrapper that runs previously failed tests first",
"version": "1.0.0",
"version": "0.0.0-development",
"author": "Gleb Bahmutov <[email protected]>",
"bugs": "https://github.com/bahmutov/focha/issues",
"config": {
Expand Down Expand Up @@ -58,7 +58,8 @@
"secure": "nsp check",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
"test": "npm run unit",
"unit": "mocha src/*-spec.js"
"unit": "mocha src/*-spec.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"devDependencies": {
"ban-sensitive-files": "1.9.0",
Expand All @@ -69,6 +70,7 @@
"mocha": "3.4.2",
"nsp": "2.6.3",
"pre-git": "3.15.0",
"standard": "10.0.2"
"standard": "10.0.2",
"semantic-release": "^6.3.6"
}
}

0 comments on commit f1047ce

Please sign in to comment.