Skip to content

Commit

Permalink
Merge pull request #99 from pelias/semantic_release
Browse files Browse the repository at this point in the history
Semantic release
  • Loading branch information
orangejulius authored Jun 13, 2016
2 parents 2dbffc9 + b0d3316 commit b62caa0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
36 changes: 29 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- 0.10
- 0.12
- 4.4
- 5.8
- 4
- 5
- 6
matrix:
fast_finish: true
allow_failures:
- node_js: 0.10
- node_js: 4.4
- node_js: 5.8
script: "npm test"
- node_js: 6
env:
global:
- CXX=g++-4.8
script: "npm run travis"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- export $(cat .to_export_back) &> /dev/null
- npm run semantic-release
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "pelias-whosonfirst",
"version": "1.0.0",
"engines": {
"node": "0.12"
},
Expand All @@ -11,11 +10,13 @@
"download": "node download_data.js",
"test": "node test/test | tap-dot",
"lint": "jshint .",
"validate": "npm ls"
"validate": "npm ls",
"travis": "npm run test",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pelias/whosonfirst.git"
"url": "https://github.com/pelias/whosonfirst.git"
},
"author": "",
"license": "MIT",
Expand Down Expand Up @@ -49,7 +50,8 @@
"jshint": "^2.5.6",
"tap-dot": "^1.0.0",
"tape": "^4.2.2",
"temp": "^0.8.3"
"temp": "^0.8.3",
"semantic-release": "^4.3.5"
},
"pre-commit": [
"lint",
Expand Down

0 comments on commit b62caa0

Please sign in to comment.