Add a .appveyor.yml file to enable AppVeyor CI integration.
authorDan Fandrich <dan@coneharvesters.com>
Mon, 3 Sep 2018 00:49:19 +0000 (02:49 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 3 Sep 2018 02:04:57 +0000 (04:04 +0200)
Only Cygwin environments are tested for now.
Results are available at
https://ci.appveyor.com/project/dfandrich/libexif

.appveyor.yml [new file with mode: 0644]

diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644 (file)
index 0000000..52fa91b
--- /dev/null
@@ -0,0 +1,20 @@
+# AppVeyor CI configuration file https://www.appveyor.com
+environment:
+  CYGWIN_MIRROR: http://cygwin.mirror.constant.com
+  matrix:
+  - CONFIG: cygwin
+  - CONFIG: cygwin64
+
+install:
+- cmd: if [%CONFIG%]==[cygwin] (
+    C:\cygwin\setup-x86.exe -qgnNdO -l C:\cygwin\var\cache\setup -R c:\cygwin -s "%CYGWIN_MIRROR%" -P libiconv-devel )
+- cmd: if [%CONFIG%]==[cygwin64] (
+    C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s "%CYGWIN_MIRROR%" -P libiconv-devel )
+
+build_script:
+- cmd: SET PATH=c:/%CONFIG%/bin
+- cmd: C:\%CONFIG%\bin\bash -e -l -c "cd $APPVEYOR_BUILD_FOLDER && autoreconf -sif && ./configure --prefix=$HOME && make LDFLAGS='-lintl' && make install"
+
+test_script:
+- cmd: C:\%CONFIG%\bin\bash -e -l -c "cd $APPVEYOR_BUILD_FOLDER && make check"
+