forked from stevej/ensime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
36 lines (36 loc) · 1.46 KB
/
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
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\sbt\sbt-launcher-packaging-0.13.13" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://dl.bintray.com/sbt/native-packages/sbt/0.13.13/sbt-0.13.13.zip',
'C:\sbt-0.13.13.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-0.13.13.zip", "C:\sbt")
}
- ps: |
if (!(Test-Path -Path "C:\Program Files\Java\jdk1.8.0\src.zip")) {
(new-object System.Net.WebClient).DownloadFile(
'https://github.com/fommil/openjdk8src/raw/master/src.zip',
'C:\Program Files\Java\jdk1.8.0\src.zip'
)
}
- cmd: SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0
- cmd: SET PATH=C:\sbt\sbt-launcher-packaging-0.13.13\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET SBT_HOME=C:\Users\appveyor\.sbt
- cmd: SET COURSIER_VERBOSITY=-1
- cmd: SET AKKA_TEST_TIMEFACTOR=10
- cmd: SET SBT_TASK_LIMIT=2
- cmd: SET GC_LOGGING=true
build_script:
- sbt ";ensimeConfig ;test:compile ;it:compile"
test_script:
- sbt ";test ;it:test"
cache:
- C:\Program Files\Java\jdk1.8.0\src.zip
- C:\sbt\sbt-launcher-packaging-0.13.13
- C:\Users\appveyor\.sbt -> appveyor.yml
- C:\Users\appveyor\.ivy2 -> appveyor.yml
- C:\Users\appveyor\.coursier -> appveyor.yml
on_finish:
- ps: Get-ChildItem -Path .\* -Include *.log,*.hprof -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }