Skip to content

Commit

Permalink
update travis automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jef Spaleta committed Dec 4, 2018
1 parent 87e6e66 commit 5678d8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ script:
--enable=goconst --tests ./...

before_script:
- echo "GITHUB TOKEN $GITHUB_TOKEN"
- echo "REPO $TRAVIS_REPO_SLUG TAG ${TRAVIS_TAG}"

before_deploy:
Expand All @@ -31,6 +30,7 @@ deploy:

after_deploy:
- travis/generate-sha512sum.sh
- cat "dist/sha512_file"
- echo "dist/${sha512_file}"
- travis/github-release-upload.sh github_api_token=$GITHUB_TOKEN repo_slug="$TRAVIS_REPO_SLUG" tag="${TRAVIS_TAG}" filename="dist/${sha512_file}"

Expand Down
9 changes: 7 additions & 2 deletions travis/generate-sha512sum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ if [ -d dist ]; then
export prefix
echo "Generating sha512sum for ${package}_${prefix}"
cd dist
sha512sum *.tar.gz > "${package}_${prefix}_sha512-checksum.txt"
sha512_file="${package}_${prefix}_sha512-checksum.txt"
export sha512_file
cat "${sha512}"
echo "sha512_file: ${sha512_file}"
echo "${sha512_file}" > sha512_file
sha512sum *.tar.gz > "${sha512_file}"
echo ""
cat "${sha512_file}"
fi
else
echo "error"
fi

0 comments on commit 5678d8e

Please sign in to comment.