Add appveyor
authorRicardo Constantino <wiiaboo@gmail.com>
Wed, 3 Jan 2018 23:57:02 +0000 (23:57 +0000)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 4 Jan 2018 04:55:21 +0000 (23:55 -0500)
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
.appveyor.yml [new file with mode: 0644]

diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644 (file)
index 0000000..653ed6e
--- /dev/null
@@ -0,0 +1,30 @@
+image: Visual Studio 2015
+configuration:
+- Debug
+- DebugDLL
+- Release
+- ReleaseDLL
+
+platform:
+- Win32
+- x64
+
+environment:
+  opus_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opus/artifacts/opus.zip
+
+install:
+- cd %APPVEYOR_BUILD_FOLDER%
+- 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %OPUS_URL%'
+- 7z x opus.zip -oopus-artifacts
+- move /Y opus-artifacts ..\opus
+
+build:
+  project: win32\VS2015\opusenc.sln
+  parallel: true
+  verbosity: minimal
+
+after_build:
+- 7z a libopusenc.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\opusenc.??? include\
+
+artifacts:
+- path: libopusenc.zip