Skip to content

Commit ee7ef44

Browse files
committed
Updates Appveyor tests to use Windows installer.
1 parent 24f616f commit ee7ef44

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

appveyor.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,26 @@ install:
2020
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 wheel numpy & endlocal"
2121
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 install nose numpy psutil mock & endlocal"
2222
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 install git+https://github.com/3drobotics/dronekit-sitl-runner.git & endlocal"
23+
24+
- cmd: choco install innosetup
25+
- cmd: cd windows & droneapiWinBuild.bat
26+
- ps: |
27+
Invoke-WebRequest "http://firmware.diydrones.com/Tools/MAVProxy/MAVProxySetup-latest.exe" -OutFile MAVProxySetup-latest.exe
28+
.\MAVProxySetup-latest.exe /VERYSILENT /LOG=setup-mavproxy.log
29+
while (!(Test-Path "setup-mavproxy.log")) { Start-Sleep 1 }
30+
while(!(Select-String -path 'setup-mavproxy.log' -pattern 'Log closed' -quiet)){ Start-Sleep 1 };
31+
rm ~\AppData\Local\MAVProxy\mavinit.scr
32+
- ps: |
33+
$setup = gi .\windows\Output\DroneKitsetup-*.exe
34+
& $setup /VERYSILENT /LOG=setup-dronekit.log
35+
while (!(Test-Path "setup-dronekit.log")) { Start-Sleep 1 }
36+
while(!(Select-String -path 'setup-dronekit.log' -pattern 'Log closed' -quiet)){ Start-Sleep 1};
37+
2338
build_script:
39+
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;c:\\Program Files (x86)\\MAVProxy;%PATH% & python -m tests.sitl & endlocal"
2440
- cmd: 'setlocal & python setup.py install & endlocal'
2541
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\web & endlocal"
2642
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\unit & endlocal"
27-
- cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & python -m tests.sitl & endlocal"
2843
clone_depth: 10
2944
test: 'off'
3045
branches:

0 commit comments

Comments
 (0)