aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-03 18:49:27 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-09 15:05:19 +0100
commit75d251403eaf59ffb9374f0d8167ebc5ff847733 (patch)
tree2e5dd032be74a6c4d8a99eab43a9cecefc4fcb44
parent6e142fa26e51554f2c8e83d8fb852bd90f0b9a66 (diff)
downloadvis-75d251403eaf59ffb9374f0d8167ebc5ff847733.tar.gz
vis-75d251403eaf59ffb9374f0d8167ebc5ff847733.tar.xz
build: add automated Cygwin builds using AppVeyor
-rw-r--r--appveyor.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..512135a
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,43 @@
+environment:
+ global:
+ CYG_MIRROR: http://cygwin.mirror.constant.com
+
+ matrix:
+ - CYG_ARCH: cygwin
+ CYG_ROOT: C:\cygwin
+ CYG_SETUP: C:\cygwin\setup-x86.exe
+ - CYG_ARCH: cygwin64
+ CYG_ROOT: C:\cygwin64
+ CYG_SETUP: C:\cygwin64\setup-x86_64.exe
+
+clone_depth: 1
+
+init:
+ # do not convert new lines to CRLF
+ - git config --global core.autocrlf input
+ # print processor and OS architecture
+ - wmic computersystem get systemtype
+ - wmic OS get OSArchitecture
+
+cache:
+ - '%APPVEYOR_BUILD_FOLDER%\dependency\sources'
+ - '%CYG_ROOT%\var\cache\setup'
+
+install:
+ - '%CYG_SETUP% --quiet-mode --no-shortcuts --packages patch,lua,lua-devel,lua-lpeg,libncurses-devel'
+ - '%CYG_ROOT%\bin\cygcheck --check-setup --dump-only'
+
+before_build:
+ - '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make clean"'
+
+build_script:
+ - '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make local && file vis"'
+
+test_script:
+ - '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make test"'
+
+after_test:
+ - 7z a -y vis-%CYG_ARCH%.zip vis.exe lexers *.lua
+
+artifacts:
+ - path: vis-%CYG_ARCH%.zip