Add appveyor.yml
This commit is contained in:
parent
d23c9baa72
commit
c71cfa637a
1 changed files with 54 additions and 0 deletions
54
appveyor.yml
Normal file
54
appveyor.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
|
||||
version: "v-{build}"
|
||||
|
||||
image: Visual Studio 2015
|
||||
|
||||
clone_folder: C:\projects\babashka
|
||||
|
||||
environment:
|
||||
GRAALVM_HOME: C:\projects\babashka\graalvm\graalvm-ce-java8-19.3.0
|
||||
|
||||
cache:
|
||||
- C:\ProgramData\chocolatey\lib -> project.clj, appveyor.yml
|
||||
- '%USERPROFILE%\.m2 -> project.clj'
|
||||
- 'graalvm -> appveyor.yml'
|
||||
|
||||
clone_script:
|
||||
- cmd: >-
|
||||
git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
|
||||
&& cd %APPVEYOR_BUILD_FOLDER%
|
||||
&& git checkout -qf %APPVEYOR_REPO_COMMIT%
|
||||
&& git submodule update --init --recursive
|
||||
|
||||
build_script:
|
||||
- cmd: >-
|
||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat', 'lein.bat')"
|
||||
|
||||
call lein self-install
|
||||
|
||||
# set CLJ_KONDO_TEST_ENV=jvm
|
||||
|
||||
# call script/test.bat
|
||||
|
||||
- cmd: >-
|
||||
choco install windows-sdk-7.1
|
||||
|
||||
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd"
|
||||
|
||||
powershell -Command "if (Test-Path('graalvm')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.0/graalvm-ce-java8-windows-amd64-19.3.0.zip', 'graalvm.zip') }"
|
||||
|
||||
powershell -Command "if (Test-Path('graalvm')) { return } else { Expand-Archive graalvm.zip graalvm }"
|
||||
|
||||
# call script/compile.bat
|
||||
|
||||
# - cmd: >-
|
||||
# lein clean
|
||||
|
||||
# set CLJ_KONDO_TEST_ENV=native
|
||||
|
||||
# call script/test.bat
|
||||
|
||||
# artifacts:
|
||||
# - path: babashka-*-windows-amd64.zip
|
||||
# name: babashka
|
||||
Loading…
Reference in a new issue