Skip to content

Commit

Permalink
chore: adds standard release and linting libraries for automated release
Browse files Browse the repository at this point in the history
Adds standard-version and CI scripts to automatically release upon merge
to master. Updates scripts to fix update package.json bug.
  • Loading branch information
jshor committed Dec 14, 2019
1 parent df03fb2 commit 7699740
Show file tree
Hide file tree
Showing 11 changed files with 2,877 additions and 2,082 deletions.
28 changes: 22 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,31 @@ language: node_js

os:
- linux
# - osx
- osx

node_js:
- $NODE_VERSION

before_install:
- git remote rm origin
- git remote add origin "https://symbology:[email protected]/jshor/symbology.git"

install:
- yarn

script:
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_COMMIT_MESSAGE != *"chore(release)"* ]]; then
yarn release;
node ./scripts/updatePkg.js;
fi
- yarn package:binary
- yarn test:coverage
- yarn package-binary
- yarn publish-binary
- yarn publish:binary
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_COMMIT_MESSAGE != *"chore(release)"* ]]; then
if [[ $TRAVIS_COMMIT_MESSAGE != *"chore(release)"* ]]; then
yarn publish:release;
fi
fi

after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
Expand All @@ -24,6 +37,9 @@ env:
matrix:
# - NODE_VERSION="9"
- NODE_VERSION="10"
# - NODE_VERSION="11"
# - NODE_VERSION="12"
# - NODE_VERSION="13"
- NODE_VERSION="11"
- NODE_VERSION="12"
- NODE_VERSION="13"

global:
secure: aVq1cD7QjvlWFnliM4kWAPc+9Fnc9vVDVSX37e4Ojnbx9m+fcLcIM9HsDUJei+vJecF0812Hcb7lKoIkCz2daqZu8QycAmxeZYdcX2SQ1O2z39pSWa4eNiy8FcfuhVlV9VDWqcxOAO3+AHvFbt34shfD7oJAZW7laVrVrowZDEznqBzxCfROwqzpPdwjVkWzdepbV+xxZNXHdlBCTqNZYeivnM4+P7RYoNsZKjZPan0NgNNH+jhGebjMGYj8KNWidsNLRCaHpRWIJqzHD0+cWNiS/4Q4Ta2VpFOLzL0Ih6Q4P/q8+4fwH4QrN3QHRMfUOjIl+ctOr99y3xrW5qvNjgv4WAzgI1an+iCAUSuaewDX/a18mtyb7SbUqmO8nXqoQVTdvRiFtxFPi4SA5MwSeG4JPsr3444LIlKaQDSCnFtpiOy5Q6u0JQQNnopZDGTRqceqWKNySHw1tLVSQivJ7WbA7avms51x7psxZ16XJ0GN3sj3HExdZUKWENuX0ijFCY28GG9hPxEpZJhAag8eaz0l2sT5lb5/Crx6oaMmzi+OW7gQeg4qfihNF/zWN/d3xGAvJKzq4JWS4RF17Npi6ctgBPv+VCTxdYozJGLnz80Rrgabqya21AeFrnSn9INHkIZGDN5BRiZB4LXvAekhmbTdU4T5LwtI3Wvd7XrwvzA=
3 changes: 3 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"releaseCommitMessageFormat": "chore(release): {{currentTag}} [ci skip]"
}
90 changes: 90 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,93 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.3.64](https://github.com/jshor/symbology/compare/v1.2.3...v1.3.64) (2019-12-14)

### 1.2.60 (2019-12-14)


### Bug Fixes

* **binding:** updates lib to properly convert bitmap chars ([51c0990](https://github.com/jshor/symbology/commit/51c0990b08bcb5aff2b38dd45113fc5a6e1ae365))
* **unix:** removes remaining png.c refs; enables pipe() for non-Win32 ([7131d1c](https://github.com/jshor/symbology/commit/7131d1c173a2dff7f86a8d7a07cb4dee8b4dee0b))
* adds patch system to apply stdout fixes ([d0ac5bc](https://github.com/jshor/symbology/commit/d0ac5bcab4be9d18dcb32ca71f9e30174d44f46d))
* adds support for Node v12+ ([bffc800](https://github.com/jshor/symbology/commit/bffc800e0bd57e4cf48913bf0d79c33517ab1fd3))

### [1.3.63](https://github.com/jshor/symbology/compare/v1.2.3...v1.3.63) (2019-12-14)

### 1.2.60 (2019-12-14)


### Bug Fixes

* **binding:** updates lib to properly convert bitmap chars ([51c0990](https://github.com/jshor/symbology/commit/51c0990b08bcb5aff2b38dd45113fc5a6e1ae365))
* **unix:** removes remaining png.c refs; enables pipe() for non-Win32 ([7131d1c](https://github.com/jshor/symbology/commit/7131d1c173a2dff7f86a8d7a07cb4dee8b4dee0b))
* adds patch system to apply stdout fixes ([d0ac5bc](https://github.com/jshor/symbology/commit/d0ac5bcab4be9d18dcb32ca71f9e30174d44f46d))
* adds support for Node v12+ ([bffc800](https://github.com/jshor/symbology/commit/bffc800e0bd57e4cf48913bf0d79c33517ab1fd3))

### [1.3.62](https://github.com/jshor/symbology/compare/v1.2.3...v1.3.62) (2019-12-14)

### 1.2.60 (2019-12-14)


### Bug Fixes

* **binding:** updates lib to properly convert bitmap chars ([51c0990](https://github.com/jshor/symbology/commit/51c0990b08bcb5aff2b38dd45113fc5a6e1ae365))
* **unix:** removes remaining png.c refs; enables pipe() for non-Win32 ([7131d1c](https://github.com/jshor/symbology/commit/7131d1c173a2dff7f86a8d7a07cb4dee8b4dee0b))
* adds patch system to apply stdout fixes ([d0ac5bc](https://github.com/jshor/symbology/commit/d0ac5bcab4be9d18dcb32ca71f9e30174d44f46d))
* adds support for Node v12+ ([bffc800](https://github.com/jshor/symbology/commit/bffc800e0bd57e4cf48913bf0d79c33517ab1fd3))

### [1.3.48](https://github.com/jshor/symbology/compare/v1.3.45...v1.3.48) (2019-12-13)

### [1.3.45](https://github.com/jshor/symbology/compare/v1.3.29...v1.3.45) (2019-12-13)

### [1.3.29](https://github.com/jshor/symbology/compare/v1.3.21...v1.3.29) (2019-12-13)

### [1.3.22](https://github.com/jshor/symbology/compare/v1.3.21...v1.3.22) (2019-12-13)

### [1.3.21](https://github.com/jshor/symbology/compare/v1.3.9...v1.3.21) (2019-12-13)

### [1.3.18](https://github.com/jshor/symbology/compare/v1.3.17...v1.3.18) (2019-12-13)

### [1.3.17](https://github.com/jshor/symbology/compare/v1.3.16...v1.3.17) (2019-12-13)

### [1.3.16](https://github.com/jshor/symbology/compare/v1.3.15...v1.3.16) (2019-12-13)

### [1.3.15](https://github.com/jshor/symbology/compare/v1.3.14...v1.3.15) (2019-12-13)

### [1.3.14](https://github.com/jshor/symbology/compare/v1.3.13...v1.3.14) (2019-12-13)

### [1.3.13](https://github.com/jshor/symbology/compare/v1.3.12...v1.3.13) (2019-12-13)

### [1.3.12](https://github.com/jshor/symbology/compare/v1.3.11...v1.3.12) (2019-12-13)

### [1.3.11](https://github.com/jshor/symbology/compare/v1.3.10...v1.3.11) (2019-12-13)

### [1.3.10](https://github.com/jshor/symbology/compare/v1.3.9...v1.3.10) (2019-12-13)

### [1.3.9](https://github.com/jshor/symbology/compare/v1.2.3...v1.3.9) (2019-12-13)


### Bug Fixes

* **binding:** updates lib to properly convert bitmap chars ([51c0990](https://github.com/jshor/symbology/commit/51c0990b08bcb5aff2b38dd45113fc5a6e1ae365))
* **unix:** removes remaining png.c refs; enables pipe() for non-Win32 ([7131d1c](https://github.com/jshor/symbology/commit/7131d1c173a2dff7f86a8d7a07cb4dee8b4dee0b))
* adds patch system to apply stdout fixes ([d0ac5bc](https://github.com/jshor/symbology/commit/d0ac5bcab4be9d18dcb32ca71f9e30174d44f46d))
* adds support for Node v12+ ([bffc800](https://github.com/jshor/symbology/commit/bffc800e0bd57e4cf48913bf0d79c33517ab1fd3))

### [1.3.9](https://github.com/jshor/symbology/compare/v1.3.6...v1.3.9) (2019-12-13)

### [1.3.6](https://github.com/jshor/symbology/compare/v1.2.3...v1.3.6) (2019-12-13)


### Bug Fixes

* **binding:** updates lib to properly convert bitmap chars ([51c0990](https://github.com/jshor/symbology/commit/51c0990b08bcb5aff2b38dd45113fc5a6e1ae365))
* **unix:** removes remaining png.c refs; enables pipe() for non-Win32 ([7131d1c](https://github.com/jshor/symbology/commit/7131d1c173a2dff7f86a8d7a07cb4dee8b4dee0b))
* adds patch system to apply stdout fixes ([d0ac5bc](https://github.com/jshor/symbology/commit/d0ac5bcab4be9d18dcb32ca71f9e30174d44f46d))
* adds support for Node v12+ ([bffc800](https://github.com/jshor/symbology/commit/bffc800e0bd57e4cf48913bf0d79c33517ab1fd3))

v1.2.3

- eliminates libpng dependency
Expand Down
38 changes: 26 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
image: Visual Studio 2017

install:
- git config --global credential.helper store
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "Josh Shor"
- git config --global user.name "[email protected]"
- ps: Install-Product node $env:NODE_VERSION $env:platform
- yarn global add windows-build-tools
- yarn
- yarn test
- yarn package-binary
# - yarn publish-binary

test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- yarn test

platform:
# - x86
build_script:
- ps: >-
if ($env:APPVEYOR_REPO_BRANCH -eq 'master' -and !($env:APPVEYOR_REPO_COMMIT_MESSAGE.Contains("chore(release)"))) {
yarn release
}
- yarn package:binary

on_success:
- ps: >-
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') {
$ErrorActionPreference = "SilentlyContinue"
yarn publish:binary
}
platform:
- x86
- x64

environment:
matrix:
# - NODE_VERSION: '9'
- NODE_VERSION: '10'
# - NODE_VERSION: '11'
# - NODE_VERSION: '12'
# - NODE_VERSION: '13'
- NODE_VERSION: '11'
- NODE_VERSION: '12'
- NODE_VERSION: '13'

access_token:
secure: 9Fo9YJd8087d6fYC63Jt2Ozl1xfbPiIlAvnDC022cG56Tu0tIPBVrcCL5PoYQkey
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
Loading

0 comments on commit 7699740

Please sign in to comment.