view: add functions to save/restore arbitrary ranges
[vis.git] / .appveyor.yml
blobfc965444e457eead98af80fab82868b684c5ec21
1 environment:
2   global:
3     CYG_MIRROR: http://cygwin.mirror.constant.com
5   matrix:
6     - CYG_ARCH: cygwin
7       CYG_ROOT: C:\cygwin
8       CYG_SETUP: C:\cygwin\setup-x86.exe
9     - CYG_ARCH: cygwin64
10       CYG_ROOT: C:\cygwin64
11       CYG_SETUP: C:\cygwin64\setup-x86_64.exe
13 clone_depth: 1
15 init:
16   # enable RDP access
17   - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
18   # do not convert new lines to CRLF
19   - git config --global core.autocrlf input
20   # print processor and OS architecture
21   - wmic computersystem get systemtype
22   - wmic OS get OSArchitecture
24 cache:
25   - '%APPVEYOR_BUILD_FOLDER%\dependency\sources'
26   - '%CYG_ROOT%\var\cache\setup'
28 install:
29   - '%CYG_SETUP% --quiet-mode --no-shortcuts --packages patch,lua,lua-devel,lua-lpeg,libncurses-devel'
30   - '%CYG_ROOT%\bin\cygcheck --check-setup --dump-only'
32 before_build:
33   - ps: |
34       $bash = $env:CYG_ROOT + "\bin\bash"
35       $cmd = "cd `$APPVEYOR_BUILD_FOLDER && "
36       $cmd +=
37       @'
38         for f in $(git ls-files -s | awk '$1 == 120000 {print $4}')
39         do
40           # echo $f is a symlink pointing to $dir/$target
41           dir=$(dirname "${f}")
42           pushd "$dir" 2>&1 > /dev/null
43           file=$(basename "$f")
44           target=`cat "$file"`
45           rm "$file"
46           ln -s "$target" "$file"
47           popd 2>&1 > /dev/null
48         done
49       '@
50       & $bash -lc $cmd
52 build_script:
53   - '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make local && file vis"'
55 test_script:
56   - '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make test"'
58 after_test:
59   - 7z a -y vis-%CYG_ARCH%.zip *.exe lua
61 artifacts:
62   - path: vis-%CYG_ARCH%.zip