forked from thesamet/sbt-protoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
37 lines (32 loc) · 1004 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\jdk1.8.0
- JAVA_HOME: C:\Program Files\Java\jdk9
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\sbt" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://github.com/sbt/sbt/releases/download/v0.13.17/sbt-0.13.17.zip',
'C:\sbt-bin-0.13.17.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-bin-0.13.17.zip", "C:\sbt")
}
- cmd: SET PATH=C:\sbt\sbt\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g
build_script:
- echo
test_script:
- sbt ^test ^scripted
- ps: |
Get-ChildItem -Path examples -Directory |
foreach {
cd $_.FullName; sbt test
}
cache:
- 'C:\sbt -> appveyor.yml'
- '%USERPROFILE%\.ivy2 -> appveyor.yml'