Travis build: don't upload dist tarball, better name for build report

This commit is contained in:
John Hood
2016-12-24 00:01:36 -05:00
parent ccf82fb95c
commit bebdb7c54d
+5 -6
View File
@@ -53,12 +53,12 @@ before_script:
- git describe --long
- |
if test osx = "${TRAVIS_OS_NAME}" && test -n "${TRAVIS_TAG}"; then
rm -rf macosx/build-report "macosx/${TRAVIS_TAG}-build-report.tbz" &&
rm -rf macosx/build-report "macosx/${TRAVIS_TAG}-osx-build-report.tbz" &&
mkdir macosx/build-report &&
cd macosx/build-report &&
../brew-deps.sh describe &&
../osx-xcode.sh describe &&
tar -cjf "../${TRAVIS_TAG}-build-report.tbz" . &&
tar -cjf "../${TRAVIS_TAG}-osx-build-report.tbz" . &&
cd -
fi
@@ -72,10 +72,10 @@ script:
if test osx = "${TRAVIS_OS_NAME}" && test -n "${TRAVIS_TAG}"; then
cd macosx &&
env ZERO_AR_DATE=1 MACOSX_DEPLOYMENT_TARGET=10.10 ./build.sh &&
shasum -a 256 "${TRAVIS_TAG}.pkg" "${TRAVIS_TAG}-build-report.tbz" &&
shasum -a 256 "${TRAVIS_TAG}.pkg" "${TRAVIS_TAG}-osx-build-report.tbz" &&
cd -
fi
# Deploy the OS X package and distribution tarball to a GitHub release.
# Deploy the OS X package and its build report to a GitHub release.
deploy:
provider: releases
api_key:
@@ -84,9 +84,8 @@ deploy:
skip_cleanup: true
# Using a shell variable in deploy.file is undocumented but seems to work.
file:
- ${TRAVIS_TAG}.tar.gz
- macosx/${TRAVIS_TAG}.pkg
- macosx/${TRAVIS_TAG}-build-report.tbz
- macosx/${TRAVIS_TAG}-osx-build-report.tbz
on:
repo: cgull/mosh
tags: true