Skip to content

Commit

Permalink
Add AppVeyor CI support
Browse files Browse the repository at this point in the history
Build on Linux and MSYS2.
  • Loading branch information
vslavik committed Feb 11, 2019
1 parent a899138 commit 684553a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
image:
- Ubuntu
- Visual Studio 2017

for:
-
matrix:
except:
- image: Ubuntu
environment:
PATH: C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%PATH%
MSYSTEM: MINGW32
CHERE_INVOKING: 1


install:
- sh: sudo apt-get update
- sh: sudo apt-get --yes install libpoppler-glib-dev poppler-utils libwxgtk3.0-dev
- cmd: sh -lc "pacman --noconfirm --sync --refresh --refresh pacman"
- cmd: sh -lc "pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade"
- cmd: sh -lc "pacman --noconfirm -S zip mingw-w64-i686-{poppler,wxWidgets}"

build_script:
- sh: ./bootstrap && ./configure && make
- cmd: sh -lc "./bootstrap && ./configure && make"

after_build:
- sh: make dist
- sh: appveyor PushArtifact diff-pdf*.tar.gz
- cmd: sh -lc "make windows-dist"
- ps: Get-ChildItem .\diff-pdf*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

deploy:
provider: Environment
name: github
on:
APPVEYOR_REPO_TAG: true
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ with finishing it. However, please do not expect any kind of support, including
implementation of feature requests or fixes. If you're not a developer and/or
willing to get your hands dirty, this tool is probably not for you.*

[![Build status](https://ci.appveyor.com/api/projects/status/m6d8n2kcyvk3cqi6?svg=true)](https://ci.appveyor.com/project/vslavik/diff-pdf)

## Usage

diff-pdf is a tool for visually comparing two PDFs.
Expand Down Expand Up @@ -124,7 +126,7 @@ included with MSYS, using these commands:
```
$ pacman -Syu
$ pacman -S automake autoconf pkg-config make zip
$ pacman -S pacman -S mingw-w64-i686-{gcc,poppler,wxWidgets}
$ pacman -S mingw-w64-i686-{gcc,poppler,wxWidgets}
```

1. Build diff-pdf in the same way as in the instructions for Unix above:
Expand Down
7 changes: 5 additions & 2 deletions win32/collect-dlls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ while true ; do
if [ $file_count -eq $last_file_count ] ; then break ; fi
last_file_count=$file_count

objdump -x $OUTPUT/* | grep "DLL Name" | cut -d: -f2 | sort | uniq | while read dll ; do
cp -anv /mingw32/bin/$dll $OUTPUT 2>/dev/null || true
objdump -x $OUTPUT/* | grep "DLL Name" | cut -d: -f2 | sort | uniq | while read i ; do
dll=`echo $i` # fixup weird line endings
if [[ -f /mingw32/bin/$dll ]] ; then
cp -anv /mingw32/bin/$dll $OUTPUT
fi
done
done

0 comments on commit 684553a

Please sign in to comment.