Drone CI: Share same build script with Appveyor.

This commit is contained in:
Qian Hong
2016-02-08 04:46:10 +08:00
parent 6a89c3bf48
commit e95b7c65fe
2 changed files with 1 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ build:
shell: msys32
commands:
- export RUNTEST=$$runtest
- drone/build.sh
- ./ci-build.sh
notify:
irc:

View File

@@ -1,24 +0,0 @@
#!/bin/bash
set -e
git config --global user.email "ci@msys2.org"
git config --global user.name "MSYS2 Build Bot"
# fetch first changed PKGBUILD file, assume at most one package touched per commit
# if you want to have your changes tested by ci then bump the pkgrel in PKGBUILD
TOUCHED=`git show -m --pretty="format:" --name-only | grep PKGBUILD | head -1`
if [ "$TOUCHED" ]
then
PKGDIR=`dirname $TOUCHED`
pushd $PKGDIR > /dev/null
if [ "$RUNTEST" = "true" ]
then
makepkg-mingw -f -s --noconfirm --skippgpcheck || true
else
makepkg-mingw -f -s --noconfirm --skippgpcheck --nocheck
fi
popd > /dev/null
else
echo Nothing to test
fi