diff options
| author | OpportunityLiu <[email protected]> | 2019-06-06 17:13:57 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-06 17:13:57 +0800 |
| commit | f9f50db9fffbd4dde056c238677d3aeaad226fe7 (patch) | |
| tree | c1927d698c23e80f6fa94bcf4d7e66ae0e70578c | |
| parent | 5c291b96a9dc2e42dddb05e4e26b365c4547bfa3 (diff) | |
test new appveyor
| -rw-r--r-- | .appveyor.yml | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 4b1715292..997303306 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,23 +9,25 @@ platform: - Win64 install: - - cmd: echo %CI% + - ps: | + Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-Webrequest "https://raw.githubusercontent.com/xmake-io/xmake/dev/scripts/get.ps1" -UseBasicParsing).Content)) -ArgumentList "dev" build_script: - - ps: Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-Webrequest "https://raw.githubusercontent.com/xmake-io/xmake/dev/scripts/get.ps1" -UseBasicParsing).Content)) -ArgumentList "dev" - - cmd: xmake --version - - cmd: xmake -P core - - cmd: set XMAKE_PROGRAM_DIR=%cd%\xmake - - cmd: core\build\xmake --version - - ps: Copy-Item -Force core\build\xmake.exe $HOME\xmake - - cmd: xmake lua -D tests\test.lua - -#on_success: -# - ps: $env:XMAKE_PROGRAM_DIR=$null -# - ps: Invoke-Expression (Get-Content scripts\getpb.ps1 | Out-String) + - ps: | + xmake --version + xmake -P core + $env:XMAKE_PROGRAM_DIR = Join-Path $(Get-Location) "xmake" + .\core\build\xmake.exe --version + Copy-Item -Force core\build\xmake.exe $HOME\xmake after_build: - - ps: Copy-Item core\build\xmake.exe . + - ps: | + Copy-Item .\core\build\xmake.exe .\xmake + Push-AppveyorArtifact .\xmake -FileName xmake.zip -DeploymentName "xmake-$($env:PLATFORM)" + +test_script: + - ps: | + Get-Command xmake + xmake --version + xmake lua -v -D tests\test.lua -artifacts: - - path: xmake.exe |
