forked from scalameta/metals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
38 lines (37 loc) · 1.18 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
37
38
version: '{build}'
os: Windows Server 2012
install:
- cmd: SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0
- cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
- cmd: choco install sbt -ia "INSTALLDIR=""C:\sbt"""
- cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH%
# disable dynVer
- ps: Remove-Item Env:\CI
- cmd: sbt version & exit 0
environment:
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: "-t7z -m0=lzma -mx=9"
JAVA_OPTS: -Xss2m -Xmx1024m -XX:-TieredCompilation -XX:ReservedCodeCacheSize=48m -Dfile.encoding=UTF-8 -Djna.nosys=true
before_build:
- ps: |
@"
-Xss2m
-Xmx1024m
-XX:ReservedCodeCacheSize=48m
-XX:-TieredCompilation
-Dfile.encoding=UTF-8
"@ > ".jvmopts"
build_script:
- sbt publishLocal
test_script:
- sbt test
after_test:
- ps: |
Get-ChildItem C:\Users\appveyor\.ivy2\* -Include "ivydata-*.properties" -Recurse | Remove-Item
Remove-Item C:\Users\appveyor\.ivy2\.sbt.ivy.lock -Force
Remove-Item C:\Users\appveyor\.ivy2\local -Recurse
Get-ChildItem C:\Users\appveyor\.sbt\* -Include "*.lock" -Recurse | Remove-Item -Force
cache:
- C:\sbt\
- C:\Users\appveyor\.ivy2
- '%LOCALAPPDATA%\Coursier\Cache'
- C:\Users\appveyor\.sbt