-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
appveyor.yml
137 lines (86 loc) · 3.93 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
version: "v-{build}"
image: Visual Studio 2017
clone_folder: C:\projects\babashka
environment:
GRAALVM_HOME: C:\projects\babashka\graalvm\graalvm-ce-java11-22.3.0
BABASHKA_XMX: "-J-Xmx5g"
cache:
- '%USERPROFILE%\.m2 -> deps.edn'
- '%USERPROFILE%\.gitlibs -> deps.edn'
- 'graalvm -> appveyor.yml'
clone_script:
- ps: >-
if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git checkout -qf $env:APPVEYOR_REPO_COMMIT
} else {
git clone -q https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
git checkout -qf FETCH_HEAD
}
- cmd: git submodule update --init --recursive
before_build:
- cmd: >-
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat', 'lein.bat')"
call lein self-install
build_script:
- 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 }"
powershell -Command "if (Test-Path('bb.exe')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/borkdude/babashka/releases/download/v1.3.181/babashka-1.3.181-windows-amd64.zip', 'bb.zip') }"
powershell -Command "if (Test-Path('bb.exe')) { return } else { Expand-Archive bb.zip . }"
- cmd: >-
set POD_DB_TYPE=hsqldb
call bb script/compile.clj
echo Creating zip archive
set /P VERSION=< resources\POD_BABASHKA_SQL_VERSION
set zip=pod-babashka-%POD_DB_TYPE%-%VERSION%-windows-amd64.zip
jar -cMf %zip% pod-babashka-%POD_DB_TYPE%.exe
call bb release-artifact %zip%
- cmd: >-
set POD_DB_TYPE=mysql
call bb script/compile.clj
echo Creating zip archive
set /P VERSION=< resources\POD_BABASHKA_SQL_VERSION
set zip=pod-babashka-%POD_DB_TYPE%-%VERSION%-windows-amd64.zip
jar -cMf %zip% pod-babashka-%POD_DB_TYPE%.exe
call bb release-artifact %zip%
- cmd: >-
set POD_DB_TYPE=mssql
call bb script/compile.clj
echo Creating zip archive
set /P VERSION=< resources\POD_BABASHKA_SQL_VERSION
set zip=pod-babashka-%POD_DB_TYPE%-%VERSION%-windows-amd64.zip
jar -cMf %zip% pod-babashka-%POD_DB_TYPE%.exe
call bb release-artifact %zip%
- cmd: >-
set POD_DB_TYPE=postgresql
call bb script/compile.clj
echo Creating zip archive
set /P VERSION=< resources\POD_BABASHKA_SQL_VERSION
set zip=pod-babashka-%POD_DB_TYPE%-%VERSION%-windows-amd64.zip
jar -cMf %zip% pod-babashka-%POD_DB_TYPE%.exe
call bb release-artifact %zip%
- cmd: >-
set POD_DB_TYPE=oracle
call bb script/compile.clj
echo Creating zip archive
set /P VERSION=< resources\POD_BABASHKA_SQL_VERSION
set zip=pod-babashka-%POD_DB_TYPE%-%VERSION%-windows-amd64.zip
jar -cMf %zip% pod-babashka-%POD_DB_TYPE%.exe
call bb release-artifact %zip%
artifacts:
- path: pod-babashka-hsqldb-*-windows-amd64.zip
name: pod-babashka-hsqldb
- path: pod-babashka-mysql-*-windows-amd64.zip
name: pod-babashka-mysql
- path: pod-babashka-mssql-*-windows-amd64.zip
name: pod-babashka-mssql
- path: pod-babashka-postgresql-*-windows-amd64.zip
name: pod-babashka-postgresql
- path: pod-babashka-oracle-*-windows-amd64.zip
name: pod-babashka-oracle