From 264417f8224f0c0ea2ea87b9b582cb701f602028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20L=2E=20F=2E=20Pinto?= Date: Thu, 3 Nov 2016 17:35:55 -0200 Subject: [PATCH 1/2] Configure for AppVeyor --- appveyor.yml | 27 +++++++++++++++++++++++++++ readme.md | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..0bab63a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,27 @@ +# Adapted from https://github.com/sbt/sbt-native-packager/blob/master/appveyor.yml +version: '{build}' +os: Windows Server 2012 + +# To make the extended ascii characters work on Windows +# we need to set string encoding for jvm to utf-8 on windows +environment: + SBT_OPTS: -Dfile.encoding=UTF8 + JAVA_OPTS: -Dfile.encoding=UTF8 +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 + +build_script: + - sbt clean compile +test_script: + - sbt test + diff --git a/readme.md b/readme.md index f71b8ce..bc361c8 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,7 @@ -# Scalatex [![Build Status](https://travis-ci.org/lihaoyi/Scalatex.svg?branch=master)](https://travis-ci.org/lihaoyi/Scalatex) +# Scalatex [![Build Status][travis-badge]][travis-link] [![Build (Windows)][appveyor-badge]][appveyor-link] [Documentation](http://lihaoyi.github.io/Scalatex) +[travis-badge]: https://travis-ci.org/lihaoyi/Scalatex.svg?branch=master +[travis-link]: https://travis-ci.org/lihaoyi/Scalatex +[appveyor-badge]: https://ci.appveyor.com/api/projects/status/github/lihaoyi/Scalatex +[appveyor-link]: https://ci.appveyor.com/project/lihaoyi/ammonite From 2c94030ea7b3b71b583c5b69754d725223e86cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20L=2E=20F=2E=20Pinto?= Date: Thu, 3 Nov 2016 19:11:00 -0200 Subject: [PATCH 2/2] Fix link --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bc361c8..bc4ed23 100644 --- a/readme.md +++ b/readme.md @@ -4,4 +4,4 @@ [travis-badge]: https://travis-ci.org/lihaoyi/Scalatex.svg?branch=master [travis-link]: https://travis-ci.org/lihaoyi/Scalatex [appveyor-badge]: https://ci.appveyor.com/api/projects/status/github/lihaoyi/Scalatex -[appveyor-link]: https://ci.appveyor.com/project/lihaoyi/ammonite +[appveyor-link]: https://ci.appveyor.com/project/lihaoyi/scalatex