Skip to content

Commit

Permalink
Fix appveyor build
Browse files Browse the repository at this point in the history
- use chocolatey
- add extra ci command
  • Loading branch information
muuki88 committed Jan 15, 2017
1 parent 6fd9201 commit 56f744f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
15 changes: 3 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
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.7/sbt-0.13.7.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: choco install sbt -ia "INSTALLDIR=""C:\sbt"""
- cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g
build_script:
- sbt clean compile
test_script:
- sbt "test-only * -- -n windows"
- sbt "scripted universal/dist universal/stage windows/*"
- sbt validateWindows
cache:
- C:\sbt\
- C:\Users\appveyor\.m2
Expand Down
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ bintrayRepository := "sbt-plugin-releases"

// scalafmt
scalafmtConfig := Some(file(".scalafmt.conf"))

// ci commands
addCommandAlias("validateWindows", ";test-only * -- -n windows;scripted universal/dist universal/stage windows/*")

0 comments on commit 56f744f

Please sign in to comment.