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
a8301b0c
Commit
a8301b0c
authored
Sep 11, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: add SKIP_*_TESTS for windows builds
Introduce SKIP_*_TEST variables for Windows builds to match POSIX builds.
parent
fff33a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
19 deletions
+26
-19
ci/test.ps1
+26
-19
No files found.
ci/test.ps1
View file @
a8301b0c
...
@@ -11,10 +11,12 @@ Write-Host "####################################################################
...
@@ -11,10 +11,12 @@ Write-Host "####################################################################
Write-Host
"## Configuring test environment"
Write-Host
"## Configuring test environment"
Write-Host
"##############################################################################"
Write-Host
"##############################################################################"
Write-Host
""
if
(
-not
$Env
:SKIP_PROXY_TESTS
)
{
Write-Host
"Starting HTTP proxy..."
Write-Host
""
Invoke-WebRequest
-Method GET -Uri https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar -OutFile poxyproxy.jar
Write-Host
"Starting HTTP proxy..."
javaw -jar poxyproxy.jar -d --port 8080 --credentials foo:bar
Invoke-WebRequest
-Method GET -Uri https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar -OutFile poxyproxy.jar
javaw -jar poxyproxy.jar -d --port 8080 --credentials foo:bar
}
Write-Host
""
Write-Host
""
Write-Host
"##############################################################################"
Write-Host
"##############################################################################"
...
@@ -24,22 +26,27 @@ Write-Host "####################################################################
...
@@ -24,22 +26,27 @@ Write-Host "####################################################################
ctest -V -R offline
ctest -V -R offline
if
(
$LastExitCode
-ne 0
)
{
[
Environment]::Exit
(
$LastExitCode
)
}
if
(
$LastExitCode
-ne 0
)
{
[
Environment]::Exit
(
$LastExitCode
)
}
Write-Host
""
if
(
-not
$Env
:SKIP_ONLINE_TESTS
)
{
Write-Host
"##############################################################################"
Write-Host
""
Write-Host
"## Running (online) tests"
Write-Host
"##############################################################################"
Write-Host
"##############################################################################"
Write-Host
"## Running (online) tests"
Write-Host
"##############################################################################"
ctest -V -R online
ctest -V -R online
if
(
$LastExitCode
-ne 0
)
{
[
Environment]::Exit
(
$LastExitCode
)
}
if
(
$LastExitCode
-ne 0
)
{
[
Environment]::Exit
(
$LastExitCode
)
}
}
Write-Host
""
if
(
-not
$Env
:SKIP_PROXY_TESTS
)
{
Write-Host
"Running proxy tests"
Write-Host
""
Write-Host
""
Write-Host
"Running proxy tests"
Write-Host
""
$Env
:GITTEST_REMOTE_PROXY_URL
=
"localhost:8080"
$Env
:GITTEST_REMOTE_PROXY_URL
=
"localhost:8080"
$Env
:GITTEST_REMOTE_PROXY_USER
=
"foo"
$Env
:GITTEST_REMOTE_PROXY_USER
=
"foo"
$Env
:GITTEST_REMOTE_PROXY_PASS
=
"bar"
$Env
:GITTEST_REMOTE_PROXY_PASS
=
"bar"
ctest -V -R proxy
ctest -V -R proxy
if
(
$LastExitCode
-ne 0
)
{
[
Environment]::Exit
(
$LastExitCode
)
}
if
(
$LastExitCode
-ne 0
)
{
[
Environment]::Exit
(
$LastExitCode
)
}
taskkill /F /IM javaw.exe
}
taskkill /F /IM javaw.exe
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