Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit bf6fe96

Browse files
committed
Fix CHANGELOG.md TravisCI automation
1 parent 8327741 commit bf6fe96

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ jobs:
7171

7272
- stage: Push Image (only with a tag) & Git push
7373
script:
74+
- travis_retry ./test/install_hub_cli
7475
- travis_retry ./test/before_install_pull
7576
- ./test/script_push

test/before_install_setup

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
1212
# docker --version && exit 1 #that's how I'll know
1313
./test/before_install_docker_osx
1414
# https://github.com/github/hub#homebrew
15-
brew install hub
1615
else
1716
sudo -E bash -c './test/before_install_docker_linux'
18-
sudo -E bash -c './test/install_hub_cli'
1917
fi
2018
docker --version || (echo "FATAL: No docker installed" && exit 1)
2119

test/install_hub_cli

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
# set -x: print each command right before it is executed
55
set -xe
66

7-
mkdir -p tmp_hub
8-
cd tmp_hub
7+
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
8+
brew install hub
9+
else
10+
mkdir -p tmp_hub
11+
cd tmp_hub
912

10-
wget -nv -O hub.tgz "https://github.com/github/hub/releases/download/v2.3.0-pre10/hub-linux-amd64-2.3.0-pre10.tgz"
11-
tar -xvzf hub.tgz
12-
./hub*/bin/hub --version
13-
mv hub*/bin/hub /usr/bin/
13+
wget -nv -O hub.tgz "https://github.com/github/hub/releases/download/v2.3.0-pre10/hub-linux-amd64-2.3.0-pre10.tgz"
14+
tar -xvzf hub.tgz
15+
./hub*/bin/hub --version
16+
sudo mv hub*/bin/hub /usr/bin/
1417

15-
cd ..
16-
rm -rf tmp_hub
18+
cd ..
19+
rm -rf tmp_hub
20+
fi

test/script_push

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,15 @@ add_commits_to_NEXT_RELEASE() {
188188
--author='^(?!Leo Gallucci Bot).*$' --perl-regexp \
189189
${TBD_PREV_COM}..HEAD > git_shortlog.stdout
190190

191+
# Delete empty lines
192+
sed -i -e '/^\s*$/d' git_shortlog.stdout
193+
191194
# Add some indentation prefix
192195
sed -i -e 's/^/ + /' git_shortlog.stdout
193196

197+
# Fix prefix for commits lines
198+
sed -i -e 's/^\s*+\s*\[/ * \[/' git_shortlog.stdout
199+
194200
# Use a temporal file
195201
rm -f temp.md
196202
mv NEXT_RELEASE.md temp.md

0 commit comments

Comments
 (0)