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
ed277684
Commit
ed277684
authored
Sep 19, 2022
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/main' into clone_namespace
parents
bf80cb63
71071360
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
14 deletions
+29
-14
.github/workflows/benchmark.yml
+1
-1
.github/workflows/main.yml
+2
-2
.github/workflows/nightly.yml
+1
-1
ci/test.sh
+25
-10
No files found.
.github/workflows/benchmark.yml
View file @
ed277684
...
@@ -27,7 +27,7 @@ jobs:
...
@@ -27,7 +27,7 @@ jobs:
os
:
ubuntu-latest
os
:
ubuntu-latest
setup-script
:
ubuntu
setup-script
:
ubuntu
-
name
:
"
macOS"
-
name
:
"
macOS"
os
:
macos-1
0.15
os
:
macos-1
1
env
:
env
:
CC
:
clang
CC
:
clang
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_GSSAPI=ON -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_CLI=ON -DCMAKE_BUILD_TYPE=Release
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_GSSAPI=ON -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_CLI=ON -DCMAKE_BUILD_TYPE=Release
...
...
.github/workflows/main.yml
View file @
ed277684
...
@@ -122,7 +122,7 @@ jobs:
...
@@ -122,7 +122,7 @@ jobs:
os
:
ubuntu-latest
os
:
ubuntu-latest
-
name
:
"
macOS"
-
name
:
"
macOS"
id
:
macos
id
:
macos
os
:
macos-1
0.15
os
:
macos-1
1
env
:
env
:
CC
:
clang
CC
:
clang
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
...
@@ -230,7 +230,7 @@ jobs:
...
@@ -230,7 +230,7 @@ jobs:
os
:
ubuntu-latest
os
:
ubuntu-latest
-
name
:
"
macOS
(SHA256)"
-
name
:
"
macOS
(SHA256)"
id
:
macos
id
:
macos
os
:
macos-1
0.15
os
:
macos-1
1
env
:
env
:
CC
:
clang
CC
:
clang
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON -DEXPERIMENTAL_SHA256=ON
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON -DEXPERIMENTAL_SHA256=ON
...
...
.github/workflows/nightly.yml
View file @
ed277684
...
@@ -154,7 +154,7 @@ jobs:
...
@@ -154,7 +154,7 @@ jobs:
SKIP_SSH_TESTS
:
true
SKIP_SSH_TESTS
:
true
os
:
ubuntu-latest
os
:
ubuntu-latest
-
name
:
"
macOS"
-
name
:
"
macOS"
os
:
macos-1
0.15
os
:
macos-1
1
env
:
env
:
CC
:
clang
CC
:
clang
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
CMAKE_OPTIONS
:
-DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
...
...
ci/test.sh
View file @
ed277684
...
@@ -27,8 +27,23 @@ cleanup() {
...
@@ -27,8 +27,23 @@ cleanup() {
kill
$GITDAEMON_PID
kill
$GITDAEMON_PID
fi
fi
if
[
!
-z
"
$PROXY_BASIC_PID
"
]
;
then
echo
"Stopping proxy (Basic)..."
kill
$PROXY_BASIC_PID
fi
if
[
!
-z
"
$PROXY_NTLM_PID
"
]
;
then
echo
"Stopping proxy (NTLM)..."
kill
$PROXY_NTLM_PID
fi
if
[
!
-z
"
$HTTP_PID
"
]
;
then
echo
"Stopping HTTP server..."
kill
$HTTP_PID
fi
if
[
!
-z
"
$SSHD_DIR
"
-a
-f
"
${
SSHD_DIR
}
/pid"
]
;
then
if
[
!
-z
"
$SSHD_DIR
"
-a
-f
"
${
SSHD_DIR
}
/pid"
]
;
then
echo
"Stopping SSH..."
echo
"Stopping SSH
server
..."
kill
$(
cat
"
${
SSHD_DIR
}
/pid"
)
kill
$(
cat
"
${
SSHD_DIR
}
/pid"
)
fi
fi
...
@@ -80,40 +95,40 @@ echo "##########################################################################
...
@@ -80,40 +95,40 @@ echo "##########################################################################
echo
"## Configuring test environment"
echo
"## Configuring test environment"
echo
"##############################################################################"
echo
"##############################################################################"
echo
""
if
[
-z
"
$SKIP_GITDAEMON_TESTS
"
]
;
then
if
[
-z
"
$SKIP_GITDAEMON_TESTS
"
]
;
then
echo
"Starting git daemon..."
echo
"Starting git daemon..."
GITDAEMON_DIR
=
`
mktemp
-d
${
TMPDIR
}
/gitdaemon.XXXXXXXX
`
GITDAEMON_DIR
=
`
mktemp
-d
${
TMPDIR
}
/gitdaemon.XXXXXXXX
`
git init
--bare
"
${
GITDAEMON_DIR
}
/test.git"
>
/dev/null
git init
--bare
"
${
GITDAEMON_DIR
}
/test.git"
>
/dev/null
git daemon
--listen
=
localhost
--export-all
--enable
=
receive-pack
--base-path
=
"
${
GITDAEMON_DIR
}
"
"
${
GITDAEMON_DIR
}
"
2>/dev/null &
git daemon
--listen
=
localhost
--export-all
--enable
=
receive-pack
--base-path
=
"
${
GITDAEMON_DIR
}
"
"
${
GITDAEMON_DIR
}
"
2>/dev/null &
GITDAEMON_PID
=
$!
GITDAEMON_PID
=
$!
disown
$GITDAEMON_PID
fi
fi
if
[
-z
"
$SKIP_PROXY_TESTS
"
]
;
then
if
[
-z
"
$SKIP_PROXY_TESTS
"
]
;
then
curl
--location
--silent
--show-error
https://github.com/ethomson/poxyproxy/releases/download/v0.7.0/poxyproxy-0.7.0.jar
>
poxyproxy.jar
curl
--location
--silent
--show-error
https://github.com/ethomson/poxyproxy/releases/download/v0.7.0/poxyproxy-0.7.0.jar
>
poxyproxy.jar
echo
""
echo
"Starting HTTP proxy (Basic)..."
echo
"Starting HTTP proxy (Basic)..."
java
-jar
poxyproxy.jar
--address
127.0.0.1
--port
8080
--credentials
foo:bar
--auth-type
basic
--quiet
&
java
-jar
poxyproxy.jar
--address
127.0.0.1
--port
8080
--credentials
foo:bar
--auth-type
basic
--quiet
&
PROXY_BASIC_PID
=
$!
echo
""
echo
"Starting HTTP proxy (NTLM)..."
echo
"Starting HTTP proxy (NTLM)..."
java
-jar
poxyproxy.jar
--address
127.0.0.1
--port
8090
--credentials
foo:bar
--auth-type
ntlm
--quiet
&
java
-jar
poxyproxy.jar
--address
127.0.0.1
--port
8090
--credentials
foo:bar
--auth-type
ntlm
--quiet
&
PROXY_NTLM_PID
=
$!
fi
fi
if
[
-z
"
$SKIP_NTLM_TESTS
"
-o
-z
"
$SKIP_ONLINE_TESTS
"
]
;
then
if
[
-z
"
$SKIP_NTLM_TESTS
"
-o
-z
"
$SKIP_ONLINE_TESTS
"
]
;
then
curl
--location
--silent
--show-error
https://github.com/ethomson/poxygit/releases/download/v0.5.1/poxygit-0.5.1.jar
>
poxygit.jar
curl
--location
--silent
--show-error
https://github.com/ethomson/poxygit/releases/download/v0.5.1/poxygit-0.5.1.jar
>
poxygit.jar
echo
""
echo
"Starting HTTP server..."
echo
"Starting HTTP server..."
NTLM_DIR
=
`
mktemp
-d
${
TMPDIR
}
/ntlm.XXXXXXXX
`
HTTP_DIR
=
`
mktemp
-d
${
TMPDIR
}
/http.XXXXXXXX
`
git init
--bare
"
${
NTLM_DIR
}
/test.git"
git init
--bare
"
${
HTTP_DIR
}
/test.git"
java
-jar
poxygit.jar
--address
127.0.0.1
--port
9000
--credentials
foo:baz
--quiet
"
${
NTLM_DIR
}
"
&
java
-jar
poxygit.jar
--address
127.0.0.1
--port
9000
--credentials
foo:baz
--quiet
"
${
HTTP_DIR
}
"
&
HTTP_PID
=
$!
fi
fi
if
[
-z
"
$SKIP_SSH_TESTS
"
]
;
then
if
[
-z
"
$SKIP_SSH_TESTS
"
]
;
then
echo
""
echo
"Starting SSH server..."
echo
"Starting ssh daemon..."
HOME
=
`
mktemp
-d
${
TMPDIR
}
/home.XXXXXXXX
`
HOME
=
`
mktemp
-d
${
TMPDIR
}
/home.XXXXXXXX
`
SSHD_DIR
=
`
mktemp
-d
${
TMPDIR
}
/sshd.XXXXXXXX
`
SSHD_DIR
=
`
mktemp
-d
${
TMPDIR
}
/sshd.XXXXXXXX
`
git init
--bare
"
${
SSHD_DIR
}
/test.git"
>
/dev/null
git init
--bare
"
${
SSHD_DIR
}
/test.git"
>
/dev/null
...
...
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