mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-29 05:02:01 +08:00
Build 10.11 instead of 10.10; fix branch name detection; cache PAR::Packer
This commit is contained in:
parent
cd85ea0a11
commit
7739cae3f3
@ -72,7 +72,7 @@ matrix:
|
|||||||
- package/linux/travis-deploy-cpp.sh
|
- package/linux/travis-deploy-cpp.sh
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode6.4 # OS X 10.10
|
osx_image: xcode8 # OS X 10.11
|
||||||
env:
|
env:
|
||||||
- TARGET=main
|
- TARGET=main
|
||||||
cache:
|
cache:
|
||||||
|
@ -25,18 +25,17 @@ if [ $(git describe --exact-match &>/dev/null) ]; then
|
|||||||
SLIC3R_BUILD_ID=$(git describe)
|
SLIC3R_BUILD_ID=$(git describe)
|
||||||
else
|
else
|
||||||
# Get the current branch
|
# Get the current branch
|
||||||
if [ -z ${GIT_BRANCH+x} ] && [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
if [ ! -z ${GIT_BRANCH+x} ]; then
|
||||||
current_branch=$(git symbolic-ref HEAD | sed 's!refs\/heads\/!!')
|
echo "Setting to GIT_BRANCH"
|
||||||
|
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
||||||
|
elif [ ! -z ${TRAVIS_BRANCH+x} ]; then
|
||||||
|
echo "Setting to TRAVIS_BRANCH"
|
||||||
|
current_branch=$TRAVIS_BRANCH
|
||||||
|
elif [ ! -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||||
|
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||||
|
current_branch=$APPVEYOR_REPO_BRANCH
|
||||||
else
|
else
|
||||||
current_branch="unknown"
|
current_branch=$(git symbolic-ref HEAD | sed 's!refs\/heads\/!!')
|
||||||
if [ ! -z ${GIT_BRANCH+x} ]; then
|
|
||||||
echo "Setting to GIT_BRANCH"
|
|
||||||
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
|
||||||
fi
|
|
||||||
if [ ! -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
|
||||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
|
||||||
current_branch=$APPVEYOR_REPO_BRANCH
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$current_branch" == "master" ]; then
|
if [ "$current_branch" == "master" ]; then
|
||||||
@ -53,8 +52,6 @@ fi
|
|||||||
dmgfile=slic3r-${SLIC3R_BUILD_ID}.dmg
|
dmgfile=slic3r-${SLIC3R_BUILD_ID}.dmg
|
||||||
echo "DMG filename: ${dmgfile}"
|
echo "DMG filename: ${dmgfile}"
|
||||||
|
|
||||||
# If we're on a branch, add the branch name to the app name.
|
|
||||||
|
|
||||||
rm -rf $WD/_tmp
|
rm -rf $WD/_tmp
|
||||||
mkdir -p $WD/_tmp
|
mkdir -p $WD/_tmp
|
||||||
|
|
||||||
|
@ -11,3 +11,6 @@ perl ./Build.PL
|
|||||||
|
|
||||||
export LIBRARY_PATH=/usr/local/lib
|
export LIBRARY_PATH=/usr/local/lib
|
||||||
perl ./Build.PL --gui
|
perl ./Build.PL --gui
|
||||||
|
|
||||||
|
# Install PAR::Packer now so that it gets cached by Travis
|
||||||
|
cpanm --local-lib local-lib PAR::Packer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user