Merge pull request #162 from lbryio/add-changelog
Add changelog and check
This commit is contained in:
commit
6748534cd1
3 changed files with 23 additions and 0 deletions
|
@ -1,10 +1,19 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: 5
|
node_js: 5
|
||||||
|
|
||||||
|
# note that travis still builds PRs so that covers
|
||||||
|
# other branches
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- development
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- rvm install 2.3.1
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- rvm use 2.3.1 && gem install danger --version '~> 4.0' && danger
|
||||||
- mkdir -p dist/css dist/js
|
- mkdir -p dist/css dist/js
|
||||||
- node_modules/.bin/node-sass scss/all.scss dist/css/all.css
|
- node_modules/.bin/node-sass scss/all.scss dist/css/all.css
|
||||||
- node_modules/.bin/webpack
|
- node_modules/.bin/webpack
|
||||||
|
|
8
CHANGELOG.md
Normal file
8
CHANGELOG.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Change Log
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
||||||
|
|
||||||
|
(Note for Alex: fill in what kind of versioning we want to use)
|
||||||
|
|
||||||
|
## [Unreleased]
|
6
Dangerfile
Normal file
6
Dangerfile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Add a CHANGELOG entry for app changes
|
||||||
|
has_app_changes = !(git.modified_files.grep(/js/).empty? && git.modified_files.grep(/scss/).empty?)
|
||||||
|
if !git.modified_files.include?("CHANGELOG.md") && has_app_changes
|
||||||
|
fail("Please include a CHANGELOG entry.")
|
||||||
|
message "See http://keepachangelog.com/en/0.3.0/ for details on good changelog guidelines"
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue