2015-07-07 20:43:17 +02:00
|
|
|
# Adapted from https://github.com/sbt/sbt-native-packager/blob/master/appveyor.yml
|
|
|
|
|
version: '{build}'
|
|
|
|
|
os: Windows Server 2012
|
|
|
|
|
install:
|
|
|
|
|
- ps: |
|
|
|
|
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
|
|
|
if (!(Test-Path -Path "C:\sbt" )) {
|
|
|
|
|
(new-object System.Net.WebClient).DownloadFile(
|
|
|
|
|
'https://dl.bintray.com/sbt/native-packages/sbt/0.13.8/sbt-0.13.8.zip',
|
|
|
|
|
'C:\sbt-bin.zip'
|
|
|
|
|
)
|
|
|
|
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-bin.zip", "C:\sbt")
|
|
|
|
|
}
|
|
|
|
|
- cmd: SET PATH=C:\sbt\sbt\bin;%JAVA_HOME%\bin;%PATH%
|
|
|
|
|
- cmd: SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
2017-01-31 15:23:03 +01:00
|
|
|
- ps: |
|
|
|
|
|
if (!(Test-Path 'C:\Users\appveyor\.m2\repository\org\anarres\jarjar\jarjar-core\1.0.1-coursier-SNAPSHOT')) {
|
|
|
|
|
iex 'git clone https://github.com/alexarchambault/jarjar'
|
|
|
|
|
Set-Location -Path jarjar
|
|
|
|
|
iex 'git checkout 249c8dbb970f8'
|
|
|
|
|
iex './gradlew.bat :jarjar-core:install'
|
|
|
|
|
Set-Location -Path ..
|
|
|
|
|
}
|
2015-07-07 20:43:17 +02:00
|
|
|
build_script:
|
2017-04-26 14:11:38 +02:00
|
|
|
- sbt ++2.11.11 clean compile coreJVM/publishLocal http-server/publishLocal
|
2016-01-02 14:59:43 +01:00
|
|
|
- sbt ++2.10.6 clean compile
|
2017-05-02 22:06:19 +02:00
|
|
|
- sbt ++2.12.1 coreJVM/publishLocal cache/publishLocal # to make the scripted sbt 1.0 tests happy
|
|
|
|
|
- sbt ++2.10.6 coreJVM/publishLocal cache/publishLocal # to make the scripted sbt 0.13 tests happy
|
2015-07-07 20:43:17 +02:00
|
|
|
test_script:
|
2017-03-23 15:19:07 +01:00
|
|
|
- ps: Start-Job -filepath .\scripts\start-it-auth-server.ps1 -ArgumentList $pwd
|
|
|
|
|
- ps: Start-Sleep -s 15 # wait for the first server to have downloaded its dependencies
|
|
|
|
|
- ps: Start-Job -filepath .\scripts\start-it-no-listing-server.ps1 -ArgumentList $pwd
|
2017-01-30 23:07:14 +01:00
|
|
|
- sbt ++2.12.1 testsJVM/test testsJVM/it:test # Would node be around for testsJS/test?
|
2017-04-26 14:11:38 +02:00
|
|
|
- sbt ++2.11.11 testsJVM/test testsJVM/it:test
|
2017-05-02 22:06:19 +02:00
|
|
|
- sbt ++2.10.6 testsJVM/test testsJVM/it:test
|
2017-05-03 19:09:59 +02:00
|
|
|
- sbt ++2.12.1 "sbt-coursier/scripted sbt-coursier/*" sbt-coursier/publishLocal "sbt-shading/scripted sbt-shading/*" # for sbt 1.0
|
|
|
|
|
- sbt ++2.10.6 "sbt-coursier/scripted sbt-coursier/*" "sbt-coursier/scripted sbt-coursier-0.13/*" sbt-coursier/publishLocal "sbt-shading/scripted sbt-shading/*" "sbt-shading/scripted sbt-shading-0.13/*" # for sbt 0.13
|
2015-07-07 20:43:17 +02:00
|
|
|
cache:
|
2017-01-31 15:22:32 +01:00
|
|
|
- C:\Users\appveyor\.ivy2\cache
|
2017-01-30 22:57:24 +01:00
|
|
|
- C:\Users\appveyor\.m2
|
2015-07-08 13:36:32 +02:00
|
|
|
- C:\Users\appveyor\.sbt
|
2017-02-21 16:06:28 +01:00
|
|
|
- C:\Users\appveyor\.coursier
|