Skip to content

Commit

Permalink
Merge pull request #32 from jaebradley/semantic-release
Browse files Browse the repository at this point in the history
implement semantic release
  • Loading branch information
jaebradley authored Nov 13, 2017
2 parents a938933 + 410e9b6 commit c39bf4d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
24 changes: 21 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
language: node_js
node_js:
- 4.2.2
sudo: false
script:
- '9'
- '8'
- '6'
cache:
directories:
- ~/.npm
notifications:
email:
recipients:
- jae.b.bradley@gmail.com
on_success: always
on_failure: always
scripts:
- npm run lint
- npm run compile
after_success:
- npm config set loglevel info
- npm run coverage
- npm run coveralls
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "getmethefuckthere",
"version": "0.0.3",
"version": "0.0.0-development",
"description": "Get directions to wherever the fuck",
"scripts": {
"compile": "./node_modules/.bin/babel --presets es2015,stage-0 -d build/ src/",
"coverage": "babel-node ./node_modules/istanbul/lib/cli cover node_modules/mocha/bin/_mocha test -- --recursive --compilers js:babel-core/register",
"coveralls": "npm run compile && npm run coverage && node_modules/.bin/coveralls < coverage/lcov.info",
"prepublish": "npm run compile",
"coveralls": "node_modules/.bin/coveralls < coverage/lcov.info",
"lint": "eslint src",
"test": "npm run compile && mocha --recursive --compilers js:babel-core/register"
"test": "mocha --recursive --compilers js:babel-core/register",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"author": "Jae Bradley",
"license": "MIT",
Expand Down Expand Up @@ -41,7 +41,9 @@
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"chai-immutable": "^1.6.0",
"commitizen": "^2.9.6",
"coveralls": "^2.13.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.1",
"eslint-config-airbnb-base": "^11.1.3",
Expand All @@ -50,6 +52,7 @@
"istanbul": "^1.0.0-alpha",
"mocha": "^3.2.0",
"mocha-lcov-reporter": "^1.3.0",
"semantic-release": "^8.2.0",
"sinon": "^2.1.0",
"sinon-chai": "^2.9.0"
},
Expand All @@ -59,5 +62,10 @@
"repository": {
"type": "git",
"url": "https://github.com/jaebradley/getmethefuckthere/tree/master"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
2 changes: 1 addition & 1 deletion test/RouteTableCreatorIntegrationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Route Table Creator Integration Test', () => {

it('Tests Route Table Creation', () => {
const table = tableCreator.create(route).toString();
const expected = '\u001b[90m┌────────────────────────────────────────┐\u001b[39m\n\u001b[90m│\u001b[39m From jae to baebae taking bar over foo \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #1 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #2 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────┴───────┴───────┴───────┴────┤\u001b[39m\n\u001b[90m│\u001b[39m From jae to baebae taking bar over foo \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬───────\u001b[39m\u001b[90m┬────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #1 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼───────\u001b[39m\u001b[90m┼────┤\u001b[39m\n\u001b[90m│\u001b[39m Step #2 \u001b[90m│\u001b[39m foo \u001b[90m│\u001b[39m bar \u001b[90m│\u001b[39m baz \u001b[90m│\u001b[39m 🚗 \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼───────┴───────┴───────┴────┤\u001b[39m\n\u001b[90m│\u001b[39m Summary \u001b[90m│\u001b[39m summary \u001b[90m│\u001b[39m\n\u001b[90m├───────────\u001b[39m\u001b[90m┼────────────────────────────┤\u001b[39m\n\u001b[90m│\u001b[39m Warnings \u001b[90m│\u001b[39m warning,another warning \u001b[90m│\u001b[39m\n\u001b[90m└───────────\u001b[39m\u001b[90m┴────────────────────────────┘\u001b[39m';
const expected = '┌────────────────────────────────────────┐\n│ From jae to baebae taking bar over foo │\n├───────────┬───────┬───────┬───────┬────┤\n│ Step #1 │ foo │ bar │ baz │ 🚗 │\n├───────────┼───────┼───────┼───────┼────┤\n│ Step #2 │ foo │ bar │ baz │ 🚗 │\n├───────────┴───────┴───────┴───────┴────┤\n│ From jae to baebae taking bar over foo │\n├───────────┬───────┬───────┬───────┬────┤\n│ Step #1 │ foo │ bar │ baz │ 🚗 │\n├───────────┼───────┼───────┼───────┼────┤\n│ Step #2 │ foo │ bar │ baz │ 🚗 │\n├───────────┼───────┴───────┴───────┴────┤\n│ Summary │ summary │\n├───────────┼────────────────────────────┤\n│ Warnings │ warning,another warning │\n└───────────┴────────────────────────────┘';
console.log(table);
expect(table).to.eql(expected);
});
Expand Down

0 comments on commit c39bf4d

Please sign in to comment.