Updated appveyor tests
This commit is contained in:
parent
0c510e7272
commit
9f897c7604
|
@ -2,6 +2,8 @@ $env:JAVA_HOME="C:\Program Files\Java\jdk1.8.0"
|
||||||
$env:PATH="$($env:JAVA_HOME)\bin;$($env:PATH)"
|
$env:PATH="$($env:JAVA_HOME)\bin;$($env:PATH)"
|
||||||
$env:CCM_PATH="C:\Users\appveyor\ccm"
|
$env:CCM_PATH="C:\Users\appveyor\ccm"
|
||||||
$env:CASSANDRA_VERSION=$env:cassandra_version
|
$env:CASSANDRA_VERSION=$env:cassandra_version
|
||||||
|
$env:EVENT_LOOP_MANAGER="async"
|
||||||
|
|
||||||
python --version
|
python --version
|
||||||
python -c "import platform; print(platform.architecture())"
|
python -c "import platform; print(platform.architecture())"
|
||||||
# Install Ant
|
# Install Ant
|
||||||
|
|
|
@ -11,14 +11,41 @@ python --version
|
||||||
python -c "import platform; print(platform.architecture())"
|
python -c "import platform; print(platform.architecture())"
|
||||||
|
|
||||||
$wc = New-Object 'System.Net.WebClient'
|
$wc = New-Object 'System.Net.WebClient'
|
||||||
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit
|
|
||||||
|
|
||||||
$env:MONKEY_PATCH_LOOP=1
|
if($env:ci_type -eq 'unit'){
|
||||||
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py
|
echo "Running Unit tests"
|
||||||
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py
|
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit
|
||||||
Remove-Item $env:MONKEY_PATCH_LOOP
|
|
||||||
|
|
||||||
echo "uploading unit results"
|
$env:MONKEY_PATCH_LOOP=1
|
||||||
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unit_results.xml))
|
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py
|
||||||
|
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py
|
||||||
|
Remove-Item $env:MONKEY_PATCH_LOOP
|
||||||
|
|
||||||
exit 0
|
echo "uploading unit results"
|
||||||
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unit_results.xml))
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if($env:ci_type -eq 'standard'){
|
||||||
|
echo "Running CQLEngine integration tests"
|
||||||
|
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=cqlengine_results.xml .\tests\integration\cqlengine
|
||||||
|
$cqlengine_tests_result = $lastexitcode
|
||||||
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\cqlengine_results.xml))
|
||||||
|
echo "uploading CQLEngine test results"
|
||||||
|
|
||||||
|
echo "Running standard integration tests"
|
||||||
|
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml .\tests\integration\standard
|
||||||
|
$integration_tests_result = $lastexitcode
|
||||||
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\standard_results.xml))
|
||||||
|
echo "uploading standard integration test results"
|
||||||
|
}
|
||||||
|
|
||||||
|
if($env:ci_type -eq 'long'){
|
||||||
|
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=cqlengine_results.xml .\tests\integration\cqlengine
|
||||||
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\cqlengine_results.xml))
|
||||||
|
echo "uploading standard integration test results"
|
||||||
|
}
|
||||||
|
|
||||||
|
$exit_result = $unit_tests_result + $cqlengine_tests_result + $integration_tests_result
|
||||||
|
echo "Exit result: $exit_result"
|
||||||
|
exit $exit_result
|
||||||
|
|
|
@ -31,6 +31,7 @@ elif "async" in EVENT_LOOP_MANAGER:
|
||||||
elif "twisted" in EVENT_LOOP_MANAGER:
|
elif "twisted" in EVENT_LOOP_MANAGER:
|
||||||
from cassandra.io.twistedreactor import TwistedConnection
|
from cassandra.io.twistedreactor import TwistedConnection
|
||||||
connection_class = TwistedConnection
|
connection_class = TwistedConnection
|
||||||
|
|
||||||
else:
|
else:
|
||||||
from cassandra.io.libevreactor import LibevConnection
|
from cassandra.io.libevreactor import LibevConnection
|
||||||
connection_class = LibevConnection
|
connection_class = LibevConnection
|
||||||
|
|
Loading…
Reference in New Issue