Fixed appveyor integration tests

This commit is contained in:
bjmb
2017-04-27 16:20:39 -04:00
parent 9f897c7604
commit 491413ea4f
3 changed files with 9 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
environment:
matrix:
- PYTHON: "C:\\Python27-x64"
cassandra_version: 3.0.5
cassandra_version: 3.10
ci_type: standard
- PYTHON: "C:\\Python34"
cassandra_version: 3.0.5
cassandra_version: 3.10
ci_type: unit
os: Visual Studio 2015
platform:

View File

@@ -59,9 +59,13 @@ $env:PYTHONPATH="$($env:CCM_PATH);$($env:PYTHONPATH)"
$env:PATH="$($env:CCM_PATH);$($env:PATH)"
# Predownload cassandra version for CCM if it isn't already downloaded.
# This is necessary because otherwise ccm fails
If (!(Test-Path C:\Users\appveyor\.ccm\repository\$env:cassandra_version)) {
Start-Process python -ArgumentList "$($env:CCM_PATH)\ccm.py create -v $($env:cassandra_version) -n 1 predownload" -Wait -NoNewWindow
echo "Checking status of download"
python $env:CCM_PATH\ccm.py status
Start-Process python -ArgumentList "$($env:CCM_PATH)\ccm.py remove predownload" -Wait -NoNewWindow
echo "Downloaded version $env:cassandra_version"
}
Start-Process python -ArgumentList "-m pip install -r test-requirements.txt" -Wait -NoNewWindow

View File

@@ -3,9 +3,9 @@ Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -force
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser -force
Get-ExecutionPolicy -List
echo $env:Path
echo $env:JAVA_HOME
echo $env:PYTHONPATH
echo $env:CASSANDRA_VERSION
echo "JAVA_HOME: $env:JAVA_HOME"
echo "PYTHONPATH: $env:PYTHONPATH"
echo "Cassandra version: $env:CASSANDRA_VERSION"
echo $env:ci_type
python --version
python -c "import platform; print(platform.architecture())"