Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
62c44c49
Commit
62c44c49
authored
Jun 21, 2017
by
Edward Thomson
Committed by
GitHub
Jun 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4211 from pks-t/pks/trusty
travis: upgrade container to Ubuntu 14.04
parents
77850789
7c8d460f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
9 deletions
+34
-9
.travis.yml
+7
-0
script/cibuild.sh
+26
-8
tests/online/clone.c
+1
-1
No files found.
.travis.yml
View file @
62c44c49
...
...
@@ -29,6 +29,7 @@ addons:
-
openssh-server
-
valgrind
dist
:
trusty
sudo
:
false
matrix
:
...
...
@@ -38,13 +39,19 @@ matrix:
compiler
:
gcc
include
:
-
compiler
:
gcc
env
:
PRECISE=1
os
:
linux
dist
:
precise
-
compiler
:
gcc
env
:
COVERITY=1
os
:
linux
dist
:
trusty
-
compiler
:
gcc
env
:
-
VALGRIND=1
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DDEBUG_POOL=ON -DCMAKE_BUILD_TYPE=Debug"
os
:
linux
dist
:
trusty
allow_failures
:
-
env
:
COVERITY=1
...
...
script/cibuild.sh
View file @
62c44c49
...
...
@@ -43,23 +43,39 @@ ctest -V -R libgit2_clar || exit $?
killall git-daemon
if
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
echo
'PasswordAuthentication yes'
|
sudo
tee
-a
/etc/sshd_config
fi
# Set up sshd
mkdir ~/sshd/
cat
>
~/sshd/sshd_config
<<-
EOF
Port 2222
ListenAddress 0.0.0.0
Protocol 2
HostKey
${
HOME
}
/sshd/id_rsa
RSAAuthentication yes
PasswordAuthentication yes
PubkeyAuthentication yes
ChallengeResponseAuthentication no
# Required here as sshd will simply close connection otherwise
UsePAM no
EOF
ssh-keygen
-t
rsa
-f
~/sshd/id_rsa
-N
""
-q
/usr/sbin/sshd
-f
~/sshd/sshd_config
# Set up keys
ssh-keygen
-t
rsa
-f
~/.ssh/id_rsa
-N
""
-q
cat
~/.ssh/id_rsa.pub
>>
~/.ssh/authorized_keys
ssh-keyscan
-t
rsa localhost
>>
~/.ssh/known_hosts
while
read
algorithm key comment
;
do
echo
"[localhost]:2222
$algorithm
$key
"
>>
~/.ssh/known_hosts
done
<~/sshd/id_rsa.pub
# Get the fingerprint for localhost and remove the colons so we can parse it as
# a hex number. The Mac version is newer so it has a different output format.
if
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
export
GITTEST_REMOTE_SSH_FINGERPRINT
=
$(
ssh-keygen
-E
md5
-F
localhost
-l
| tail
-n
1 | cut
-d
' '
-f
3 | cut
-d
:
-f2-
| tr
-d
:
)
export
GITTEST_REMOTE_SSH_FINGERPRINT
=
$(
ssh-keygen
-E
md5
-F
'[localhost]:2222'
-l
| tail
-n
1 | cut
-d
' '
-f
3 | cut
-d
:
-f2-
| tr
-d
:
)
else
export
GITTEST_REMOTE_SSH_FINGERPRINT
=
$(
ssh-keygen
-F
localhost
-l
| tail
-n
1 | cut
-d
' '
-f
2 | tr
-d
':'
)
export
GITTEST_REMOTE_SSH_FINGERPRINT
=
$(
ssh-keygen
-F
'[localhost]:2222'
-l
| tail
-n
1 | cut
-d
' '
-f
2 | tr
-d
':'
)
fi
export
GITTEST_REMOTE_URL
=
"ssh://localhost/
$HOME
/_temp/test.git"
export
GITTEST_REMOTE_URL
=
"ssh://localhost
:2222
/
$HOME
/_temp/test.git"
export
GITTEST_REMOTE_USER
=
$USER
export
GITTEST_REMOTE_SSH_KEY
=
"
$HOME
/.ssh/id_rsa"
export
GITTEST_REMOTE_SSH_PUBKEY
=
"
$HOME
/.ssh/id_rsa.pub"
...
...
@@ -83,6 +99,8 @@ if [ -e ./libgit2_clar ]; then
fi
killall sshd
export
GITTEST_REMOTE_URL
=
"https://github.com/libgit2/non-existent"
export
GITTEST_REMOTE_USER
=
"libgit2test"
ctest
-V
-R
libgit2_clar-cred_callback
tests/online/clone.c
View file @
62c44c49
...
...
@@ -547,7 +547,7 @@ void test_online_clone__ssh_cert(void)
if
(
!
_remote_ssh_fingerprint
)
cl_skip
();
cl_git_fail_with
(
GIT_EUSER
,
git_clone
(
&
g_repo
,
"ssh://localhost/foo"
,
"./foo"
,
&
g_options
));
cl_git_fail_with
(
GIT_EUSER
,
git_clone
(
&
g_repo
,
_remote_url
,
"./foo"
,
&
g_options
));
}
static
char
*
read_key_file
(
const
char
*
path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment