diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 000000000..6fe1b8bc8 --- /dev/null +++ b/.appveyor.yml @@ -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 diff --git a/citest/test.bat b/citest/test.bat new file mode 100644 index 000000000..30365c99d --- /dev/null +++ b/citest/test.bat @@ -0,0 +1,6 @@ +cd "%~dp0" + +SET JAVA_HOME=C:\jdk9 +SET PATH=C:\jdk9\bin;%PATH% + +"..\target\freshly-baked\sbt\bin\sbt" about