diff options
| author | TitanSnow <[email protected]> | 2017-05-20 14:19:50 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-20 14:30:04 +0800 |
| commit | 435bb391e6c434b3f0df4ca8957edf6401ec6fa6 (patch) | |
| tree | 89e5830cbdb714e183e0734c2b8f45d488570941 | |
| parent | 158e830466472e9bb56f471344f6633ce7d6262f (diff) | |
add tests for windows
| -rw-r--r-- | appveyor.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml index 698c330b7..39969eb76 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,11 +13,12 @@ install: - ps: Copy-Item -Recurse luarocks\luarocks-2.4.2-win32\win32\lua5.1 C:\lua - cmd: cd luarocks\luarocks-2.4.2-win32 - cmd: install.bat /Q - - cmd: set PATH=%PATH%;C:\Program Files (x86)\LuaRocks + - cmd: set PATH=%PATH%;C:\Program Files (x86)\LuaRocks;C:\lua\bin - cmd: cd ..\.. - ps: Remove-Item luarocks -Recurse -Force - ps: Remove-Item luarocks.zip - cmd: luarocks install luacov + - ps: Copy-Item -Recurse C:\lua\share\lua\5.1 $HOME\xmake\lua build_script: - ps: Invoke-Expression (Get-Content scripts\get.ps1 | Out-String) @@ -26,3 +27,11 @@ build_script: - cmd: xmake -P core - cmd: set XMAKE_PROGRAM_DIR=%cd%\xmake - cmd: core\build\xmake lua versioninfo + - ps: Write-Output "require('luacov.runner').init({['statsfile']='$PWD/luacov.stats.out',['reportfile']='$PWD/luacov.report.out'})".replace('\','/') | Out-File tmp + - ps: Write-Output (Get-Content xmake\core\_xmake_main.lua | Out-String) | Out-File tmp -Append + - ps: Move-Item -Force tmp xmake\core\_xmake_main.lua + - ps: Copy-Item -Force core\build\xmake.exe $HOME\xmake + - cmd: xmake lua tests\test.lua + +on_success: + - cmd: luacov |
