Add appveyor scripts to test with MSYS2

This commit is contained in:
Ricardo Constantino 2016-10-21 15:37:48 +01:00
parent 29153ed503
commit e269b86539
No known key found for this signature in database
GPG key ID: EFD16019AE4FF531
3 changed files with 50 additions and 0 deletions

28
appveyor.yml Normal file
View file

@ -0,0 +1,28 @@
branches:
only:
- master
- appveyor
environment:
matrix:
- MSYSTEM: MINGW64
- MSYSTEM: MINGW32
shallow_clone: true
test: off
install:
# Update core packages
- C:\msys64\usr\bin\pacman -Syyuu --noconfirm --noprogressbar
# Update non-core packages
- C:\msys64\usr\bin\pacman -Suu --noconfirm --noprogressbar
# Install required MSYS2 packages
- C:\msys64\usr\bin\pacman -S --noconfirm --noprogressbar --needed automake-wrapper make
# Now MSYS2 is up to date, do the rest of the install from a bash script
- C:\msys64\usr\bin\bash -lc "cd \"$APPVEYOR_BUILD_FOLDER\" && exec ./tools/appveyor-install.sh"
build_script:
- C:\msys64\usr\bin\bash -lc "cd \"$APPVEYOR_BUILD_FOLDER\" && exec ./tools/appveyor-build.sh"
cache:
- C:\msys64\var\cache\pacman\pkg

12
tools/appveyor-build.sh Normal file
View file

@ -0,0 +1,12 @@
#!/usr/bin/bash
set -e
export CC=gcc
./autogen.sh
./configure \
--host=$MINGW_CHOST \
--build=$MINGW_CHOST \
--target=$MINGW_CHOST \
--disable-shared --enable-static
make

10
tools/appveyor-install.sh Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/bash
set -e
# Install build dependencies for kvazaar
pacman -S --noconfirm --noprogressbar --needed \
$MINGW_PACKAGE_PREFIX-gcc \
$MINGW_PACKAGE_PREFIX-yasm
# Delete unused packages to reduce space used in the Appveyor cache
pacman -Sc --noconfirm