Travis build: don't upload dist tarball, better name for build report
This commit is contained in:
+5
-6
@@ -53,12 +53,12 @@ before_script:
|
|||||||
- git describe --long
|
- git describe --long
|
||||||
- |
|
- |
|
||||||
if test osx = "${TRAVIS_OS_NAME}" && test -n "${TRAVIS_TAG}"; then
|
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 &&
|
mkdir macosx/build-report &&
|
||||||
cd macosx/build-report &&
|
cd macosx/build-report &&
|
||||||
../brew-deps.sh describe &&
|
../brew-deps.sh describe &&
|
||||||
../osx-xcode.sh describe &&
|
../osx-xcode.sh describe &&
|
||||||
tar -cjf "../${TRAVIS_TAG}-build-report.tbz" . &&
|
tar -cjf "../${TRAVIS_TAG}-osx-build-report.tbz" . &&
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -72,10 +72,10 @@ script:
|
|||||||
if test osx = "${TRAVIS_OS_NAME}" && test -n "${TRAVIS_TAG}"; then
|
if test osx = "${TRAVIS_OS_NAME}" && test -n "${TRAVIS_TAG}"; then
|
||||||
cd macosx &&
|
cd macosx &&
|
||||||
env ZERO_AR_DATE=1 MACOSX_DEPLOYMENT_TARGET=10.10 ./build.sh &&
|
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 -
|
cd -
|
||||||
fi
|
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:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
@@ -84,9 +84,8 @@ deploy:
|
|||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
# Using a shell variable in deploy.file is undocumented but seems to work.
|
# Using a shell variable in deploy.file is undocumented but seems to work.
|
||||||
file:
|
file:
|
||||||
- ${TRAVIS_TAG}.tar.gz
|
|
||||||
- macosx/${TRAVIS_TAG}.pkg
|
- macosx/${TRAVIS_TAG}.pkg
|
||||||
- macosx/${TRAVIS_TAG}-build-report.tbz
|
- macosx/${TRAVIS_TAG}-osx-build-report.tbz
|
||||||
on:
|
on:
|
||||||
repo: cgull/mosh
|
repo: cgull/mosh
|
||||||
tags: true
|
tags: true
|
||||||
|
|||||||
Reference in New Issue
Block a user