Skip to content

Commit

Permalink
debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Mar 6, 2020
1 parent 05d18b2 commit a05afa1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ deploy:
branches:
only:
- master
draft: true
draft: false
after_deploy:
- "./update_release_body.sh"
notifications:
Expand Down
1 change: 1 addition & 0 deletions build_addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
else
tar --owner=root --group=root -czf $BUILD_DIR/dist/$ADDON_FILE *
fi

cd $BUILD_DIR

sha256sum $BUILD_DIR/dist/$ADDON_FILE > $BUILD_DIR/dist/$ADDON_FILE.sha256
Expand Down
2 changes: 1 addition & 1 deletion build_release_body.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ git log `git describe --tags --abbrev=0`..HEAD --pretty=format:'* %h @%an %s' \
| grep -vi "update readme" \
| grep -vi "bump version" \
| sed -e 's/Sebastian Raff/hobbyquaker/g' \
>> RELEASE_BODY.md
>>RELEASE_BODY.md

cat >>RELEASE_BODY.md <<EOL
Expand Down
5 changes: 4 additions & 1 deletion update_change_history.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ function req() {
}
}, (err, res, body) => {
if (!err) {
parse(JSON.parse(body))
parse(JSON.parse(body));
} else {
console.error(err.message);
}
});
}

function parse(data) {
if (!data.forEach) {
console.error(data);
}
data.forEach(release => {
console.log(`# [${release.tag_name}](https://github.com/rdmtc/RedMatic/releases/${release.tag_name}) ${release.published_at}`);
let include = false;
Expand Down
2 changes: 1 addition & 1 deletion update_release_body.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LTAG=`jq -r '.tag_name' latest-release.json`
source addon_tmp/redmatic/versions

if [ "$LTAG" != "v$VERSION_ADDON" ]; then
echo "wrong release"
echo "wrong release $LTAG != v$VERSION_ADDON"
rm latest-release.json
exit 1
fi
Expand Down

0 comments on commit a05afa1

Please sign in to comment.