Add AppVeyor settings

This commit is contained in:
Eugene Yokota 2017-12-13 22:22:37 -05:00
parent 4188199965
commit 73bd7a5284
2 changed files with 33 additions and 0 deletions

27
.appveyor.yml Normal file
View File

@ -0,0 +1,27 @@
build: off
init:
- git config --global core.autocrlf input
install:
- cinst jdk8 -params 'installdir=C:\\jdk8'
- cinst jdk9 -version 9.0.1.11 -params 'installdir=C:\\jdk9'
- SET JAVA_HOME=C:\jdk8
- SET PATH=C:\jdk8\bin;%PATH%
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\sbt" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://cocl.us/sbt-0.13.16.zip',
'C:\sbt-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-bin.zip", "C:\sbt")
}
- SET PATH=C:\sbt\sbt\bin;%PATH%
- SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g -Dfile.encoding=UTF8
test_script:
- sbt "-Dsbt.build.version=1.0.4" universal:packageBin
- unzip target\universal\sbt.zip -d target\freshly-baked\
- citest\test.bat

6
citest/test.bat Normal file
View File

@ -0,0 +1,6 @@
cd "%~dp0"
SET JAVA_HOME=C:\jdk9
SET PATH=C:\jdk9\bin;%PATH%
"..\target\freshly-baked\sbt\bin\sbt" about