try to enable TRAVIS build by setting sslVerify to "false"

This commit is contained in:
Christoph Schuler 2017-01-25 09:42:58 +01:00
parent 3f4c7a7af8
commit 1cf7d6b131
2 changed files with 1 additions and 5 deletions

@ -144,11 +144,6 @@ begin_test "clone ClientCert"
( (
set -e set -e
if $TRAVIS; then
echo "Skipping SSL tests, Travis has weird behaviour in validating custom certs, test locally only"
exit 0
fi
reponame="test-cloneClientCert" reponame="test-cloneClientCert"
setup_remote_repo "$reponame" setup_remote_repo "$reponame"
clone_repo_clientcert "$reponame" "$reponame" clone_repo_clientcert "$reponame" "$reponame"

@ -387,6 +387,7 @@ setup() {
git config --global http.sslcainfo "$LFS_CERT_FILE" git config --global http.sslcainfo "$LFS_CERT_FILE"
git config --global http.$LFS_CLIENT_CERT_URL/.sslKey "$LFS_CLIENT_KEY_FILE" git config --global http.$LFS_CLIENT_CERT_URL/.sslKey "$LFS_CLIENT_KEY_FILE"
git config --global http.$LFS_CLIENT_CERT_URL/.sslCert "$LFS_CLIENT_CERT_FILE" git config --global http.$LFS_CLIENT_CERT_URL/.sslCert "$LFS_CLIENT_CERT_FILE"
git config --global http.$LFS_CLIENT_CERT_URL/.sslVerify "false"
( grep "git-lfs clean" "$REMOTEDIR/home/.gitconfig" > /dev/null && grep "git-lfs filter-process" "$REMOTEDIR/home/.gitconfig" > /dev/null ) || { ( grep "git-lfs clean" "$REMOTEDIR/home/.gitconfig" > /dev/null && grep "git-lfs filter-process" "$REMOTEDIR/home/.gitconfig" > /dev/null ) || {
echo "global git config should be set in $REMOTEDIR/home" echo "global git config should be set in $REMOTEDIR/home"