-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathappveyor.yml
62 lines (38 loc) · 1.89 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
version: "v-{build}"
image: Visual Studio 2017
clone_folder: C:\projects\deps.clj
environment:
GRAALVM_HOME: C:\projects\deps.clj\graalvm\graalvm-ce-java11-22.3.0
cache:
- C:\ProgramData\chocolatey\lib -> project.clj, appveyor.yml
- '%USERPROFILE%\.m2 -> project.clj'
- 'graalvm -> appveyor.yml'
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
- cmd: >-
powershell -Command "if (Test-Path('bb.exe')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/babashka/babashka/releases/download/v0.9.162/babashka-0.9.162-windows-amd64.zip', 'bb.zip') }"
powershell -Command "if (Test-Path('bb.exe')) { return } else { Expand-Archive bb.zip . }"
- cmd: >-
call lein do clean, uberjar
set /P DEPS_CLJ_VERSION=< resources\DEPS_CLJ_VERSION
call java -jar "target/deps.clj-%DEPS_CLJ_VERSION%-standalone.jar" "-Sverbose" "-Spath"
- cmd: >-
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
powershell -Command "if (Test-Path('graalvm')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.0/graalvm-ce-java11-windows-amd64-22.3.0.zip', 'graalvm.zip') }"
powershell -Command "if (Test-Path('graalvm')) { return } else { Expand-Archive graalvm.zip graalvm }"
%GRAALVM_HOME%\bin\gu.cmd install native-image
bb compile
echo Creating zip archive
set ARTIFACT=deps.clj-%DEPS_CLJ_VERSION%-windows-amd64.zip
jar -cMf %ARTIFACT% deps.exe
bb upload-artifact :file %ARTIFACT%
dir
artifacts:
- path: deps.clj-*-windows-amd64.zip
name: deps.exe
test_script:
- cmd: >-
bb exe-test