forked from thesamet/sbt-protoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
37 lines (32 loc) · 964 Bytes
/
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
version: '{build}'
os: Windows Server 2012
environment:
SBT_OPTS: -Dfile.encoding=UTF8
JAVA_OPTS: -Dfile.encoding=UTF8
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk10
- JAVA_HOME: C:\Program Files\Java\jdk11
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\sbt" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://piccolo.link/sbt-1.2.8.zip',
'C:\sbt-bin-1.2.8.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-bin-1.2.8.zip", "C:\sbt")
}
- cmd: SET PATH=C:\sbt\sbt\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET SBT_OPTS=-Xmx4g
build_script:
- echo
test_script:
- sbt ^test ^scripted
- ps: |
Get-ChildItem -Path examples -Directory -ErrorAction 'Stop' |
foreach {
cd $_.FullName; sbt test
}
cache:
- 'C:\sbt -> appveyor.yml'
- '%USERPROFILE%\.ivy2 -> appveyor.yml'