modify appveyor

pull/13/head
ruki 6 years ago
parent 46fb528487
commit 6e876c9a52
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 8
      .appveyor.yml
  2. 4
      scripts/test.lua

@ -7,7 +7,13 @@ platform:
- Win64
before_build:
- ps: Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-Webrequest "https://raw.githubusercontent.com/tboox/xmake/dev/scripts/get.ps1" -UseBasicParsing).Content)) -ArgumentList "repo"
- 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: git clone https://github.com/xmake-io/xmake.git -b repo
- cmd: cd xmake
- cmd: xmake -P core
- cmd: set XMAKE_PROGRAM_DIR=%cd%\xmake
- ps: Copy-Item -Force core\build\xmake.exe $HOME\xmake
- cmd: xmake --version
build_script:

@ -8,9 +8,10 @@ function main(...)
table.insert(packages, package)
end
end
end
if #packages == 0 then
table.insert(packages, "tbox")
end
if #packages > 0 then
local repodir = os.curdir()
local workdir = path.join(os.tmpdir(), "xmake-repo")
print(packages)
@ -23,4 +24,3 @@ function main(...)
os.exec("xmake repo -l")
os.exec("xmake require -f -v -D -y %s", table.concat(packages, " "))
end
end

Loading…
Cancel
Save