Update Travis.
This commit is contained in:
@@ -158,6 +158,7 @@ git ls-files -v
|
|||||||
|
|
||||||
umask 077
|
umask 077
|
||||||
[[ -d ~/.ssh ]] || mkdir ~/.ssh
|
[[ -d ~/.ssh ]] || mkdir ~/.ssh
|
||||||
|
fix_home_ssh_perms
|
||||||
repo=$(git config remote.origin.url)
|
repo=$(git config remote.origin.url)
|
||||||
ssh_repo=${repo/https:\/\/github.com\//git@github.com:}
|
ssh_repo=${repo/https:\/\/github.com\//git@github.com:}
|
||||||
eval $(ssh-agent -s)
|
eval $(ssh-agent -s)
|
||||||
@@ -166,7 +167,9 @@ openssl aes-256-cbc -d -a -K "$UPX_AUTOMATIC_BUILDS_SSL_KEY" -iv "$UPX_AUTOMATIC
|
|||||||
set -x
|
set -x
|
||||||
chmod 600 .git/deploy.key
|
chmod 600 .git/deploy.key
|
||||||
ssh-add .git/deploy.key
|
ssh-add .git/deploy.key
|
||||||
|
fix_home_ssh_perms
|
||||||
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
||||||
|
fix_home_ssh_perms
|
||||||
|
|
||||||
let i=0 || true
|
let i=0 || true
|
||||||
while true; do
|
while true; do
|
||||||
|
|||||||
@@ -244,4 +244,13 @@ print_settings() {
|
|||||||
##env | LC_ALL=C sort
|
##env | LC_ALL=C sort
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fix_home_ssh_perms() {
|
||||||
|
if [[ -d ~/.ssh ]]; then
|
||||||
|
if [[ -x /usr/sbin/restorecon ]]; then
|
||||||
|
/usr/sbin/restorecon -v -R ~/.ssh || true
|
||||||
|
fi
|
||||||
|
chmod -c -R go-rwx ~/.ssh || true
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ testsuite_split_f() {
|
|||||||
fb=$(basename "$1")
|
fb=$(basename "$1")
|
||||||
fsubdir=$(basename "$fd")
|
fsubdir=$(basename "$fd")
|
||||||
# sanity checks
|
# sanity checks
|
||||||
if [[ ! -f $f || -z $fsubdir || -z $fb ]]; then
|
if [[ ! -f "$1" || -z "$fsubdir" || -z "$fb" ]]; then
|
||||||
fd= fb= fsubdir=
|
fd= fb= fsubdir=
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user