From a8780f03a83755fe7c3c1e49d951de0d20ca0ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Job=20Evers=E2=80=90Meltzer?= Date: Tue, 7 Feb 2017 21:34:15 -0600 Subject: [PATCH] Add changelog (#463) Add changelog and danger checks --- .travis.yml | 19 +++++++++++++------ CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ Dangerfile | 5 +++++ 3 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 Dangerfile diff --git a/.travis.yml b/.travis.yml index 2b451f735..8d48c8a9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,12 @@ notifications: slack: secure: "Am13HPtpgCMljh0MDVuoFHvQXB8yhf4Kvf/qAeSp5N0vsHGL70CSF9Ahccw8dVPE6mbuak1OGtSUb6/UaErLHkpz3ztaRLkDa9x7CmBB3Kynnh8oO2VbB7b/2ROULqkhF4VZmAnNfwrQrbC3gs8Sybp261Nyc7y4ww15xDYBrk2fyq4ds2DCaJdRxfJUJFonrZ6KXr3fVaXosO6cjuyS8eRodcmrqsT4cCtinjNTD1hGWoH107E4ObSmpVelxQO193KhNJMRiLlEcVkvYUOqIWBtwdGHbNE/6Yeuq1TXgKJ0KeJWAmW3wTfUYNngGXNAsyCnrhul5TKNevNzfIAQZHvRsczYiWPJV6LtohHT0CcUiCXJtvEPOyahEBfwK3etY/xxFqny7N9OEmpdW2sgsEPNPX2LJynJti2rQA9SuAD1ogR3ZpDy/NXoaAZf8PTdPcuNUMULV9PGG7tVrLBecO/W1qO6hdFxwlLdgqGLxAENZgGp++v/DhPk/WvtmHj7iTbRq0nxaTWyX5uKOn2ADH+k/yfutjv6BsQU9xNyPeZEEtuEpc6X6waiYn/8G9vl9PecvKC5H0MgsZ6asAxmg7mZ3VSMFG7mo8ENeOhSZ0Oz6ZTBILL3wFccZA9uJIq7NWmqC9dRiGiuKXBB62No7sINoHg3114e2xYa9qvNmGg=" +# not that travis still builds PRs so that covers +# other branches +branches: + only: + - master + cache: directories: - $HOME/.cache/pip @@ -25,7 +31,7 @@ cache: - $TRAVIS_BUILD_DIR/cache/wheel before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./packaging/travis/setup_osx.sh; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./packaging/travis/setup_osx.sh; fi - mkdir -p lbrynet/resources/ui - ./packaging/travis/setup_build.sh @@ -33,20 +39,21 @@ install: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./packaging/travis/install_dependencies_and_run_tests.sh; fi before_script: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in packaging/osx/certs/dist.cer.enc -d -a -out packaging/osx/certs/dist.cer; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in packaging/osx/certs/dist.p12.enc -d -a -out packaging/osx/certs/dist.p12; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./packaging/osx/add-key.sh; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in packaging/osx/certs/dist.cer.enc -d -a -out packaging/osx/certs/dist.cer; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in packaging/osx/certs/dist.p12.enc -d -a -out packaging/osx/certs/dist.p12; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./packaging/osx/add-key.sh; fi script: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash packaging/ubuntu/ubuntu_package_setup.sh -t; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd packaging/osx/lbry-osx-app && ./setup_app.sh && cd $TRAVIS_BUILD_DIR; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then cd packaging/osx/lbry-osx-app && ./setup_app.sh && cd $TRAVIS_BUILD_DIR; fi # fail the build if this is a build for a tag and we don't have the versions matching; allow tags that start with 'test' to pass - if [[ -n "${TRAVIS_TAG}" ]]; then if [[ "${TRAVIS_TAG}" == test* ]] || [[ "v`python setup.py -V`" = "${TRAVIS_TAG}" ]]; then true; else false; fi; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rvm use 2.3.1 && gem install danger --version '~> 4.0' && danger; fi before_deploy: # s3 release can only upload a folder so move the package into an upload folder - mkdir "${TRAVIS_BUILD_DIR}/upload" - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv "${TRAVIS_BUILD_DIR}/packaging/osx/lbry-osx-app/`python setup.py --name`.`python setup.py -V`.dmg" "${TRAVIS_BUILD_DIR}/upload"; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then mv "${TRAVIS_BUILD_DIR}/packaging/osx/lbry-osx-app/`python setup.py --name`.`python setup.py -V`.dmg" "${TRAVIS_BUILD_DIR}/upload"; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv "${TRAVIS_BUILD_DIR}/`python setup.py --name`_`python setup.py -V`_amd64.deb" "${TRAVIS_BUILD_DIR}/upload"; fi deploy: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..5cbf834c3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,33 @@ +# 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/) +and this project adheres to [Semantic Versioning](http://semver.org/) with +regard to the json-rpc api. As we're currently pre-1.0 release, we +can and probably will change functionality and break backwards compatability +at anytime. + +## [Unreleased] + +## [0.8.1] - 2017-02-01 +### Changed + * reflect all the blobs in a stream + * change command line flags so that the more common usage is the default + * change daemon function signatures to include names arguments +### Fixed + * disable verbose twisted logs + * improved wallet balance calculations + * fix block too deep error + +## [0.8.0] - 2017-01-24 +### Changed + * renamed api endpoints + * improved command line user experience + * integrate twisted logging with python logging + * Updated READMEs +### Fixed + * Fixed bug where ConnectionManager wasn't being stopped + * Fixed: #343 + * Stop hanging if github is down + * paths for debian package have been updated to be correct + * improved output of the publish command diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 000000000..c1af0296d --- /dev/null +++ b/Dangerfile @@ -0,0 +1,5 @@ +# Add a CHANGELOG entry for app changes +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