1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Update Travis.

This commit is contained in:
Markus F.X.J. Oberhumer 2017-01-17 01:59:13 +01:00
parent c940d2906f
commit d333c940da
2 changed files with 11 additions and 5 deletions

View File

@ -39,7 +39,9 @@ cd / && cd $upx_SRCDIR || exit 1
rev=$(git rev-parse --verify HEAD) rev=$(git rev-parse --verify HEAD)
timestamp=$(git log -n1 --format='%at' HEAD) timestamp=$(git log -n1 --format='%at' HEAD)
date=$(TZ=UTC0 date -d "@$timestamp" '+%Y%m%d-%H%M%S') date=$(TZ=UTC0 date -d "@$timestamp" '+%Y%m%d-%H%M%S')
branch="$TRAVIS_BRANCH-$date-${rev:0:6}" #branch="$TRAVIS_BRANCH-$date-${rev:0:6}"
# make the branch name a little bit shorter so that is shows up nicely on GitHub
branch="$TRAVIS_BRANCH-${date:0:8}-${rev:0:7}"
if [[ -n $APPVEYOR_JOB_ID ]]; then if [[ -n $APPVEYOR_JOB_ID ]]; then
branch="$branch-appveyor" branch="$branch-appveyor"
git_user="AppVeyor CI" git_user="AppVeyor CI"
@ -137,7 +139,11 @@ ssh-add .git/deploy.key
ssh-keyscan -H github.com >> ~/.ssh/known_hosts ssh-keyscan -H github.com >> ~/.ssh/known_hosts
let i=0 || true let i=0 || true
while [[ $i -lt 10 ]]; do while true; do
if [[ $i -ge 10 ]]; then
echo "ERROR: git push failed"
exit 1
fi
if [[ $new_branch == 1 ]]; then if [[ $new_branch == 1 ]]; then
if git push -u $ssh_repo $branch; then break; fi if git push -u $ssh_repo $branch; then break; fi
else else
@ -146,7 +152,7 @@ while [[ $i -lt 10 ]]; do
git fetch origin $branch git fetch origin $branch
git rebase origin/$branch $branch git rebase origin/$branch $branch
sleep $((RANDOM % 5 + 1)) sleep $((RANDOM % 5 + 1))
let i=i+1 let i+=1
done done
exit 0 exit 0

View File

@ -176,11 +176,11 @@ matrix:
compiler: clang compiler: clang
env: C=clang-703-m64 env: C=clang-703-m64
- os: osx - os: osx
osx_image: xcode8.1 osx_image: xcode8.2
compiler: clang compiler: clang
env: C=clang-800-m32 env: C=clang-800-m32
- os: osx - os: osx
osx_image: xcode8.1 osx_image: xcode8.2
compiler: clang compiler: clang
env: C=clang-800-m64 env: C=clang-800-m64