Merge pull request #431 from fracting/drone-20160202-v1

Add drone build script.
This commit is contained in:
Alexpux
2016-02-02 08:15:17 +03:00
2 changed files with 27 additions and 0 deletions

14
.drone.yml Normal file
View File

@@ -0,0 +1,14 @@
build:
image: fracting/msys32
shell: msys32
commands:
- drone/build.sh
notify:
irc:
prefix: build
nick: MSYS2-packages
channel: msys2
server:
host: irc.oftc.net
port: 6667

13
drone/build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# fetch first changed file, assume at most one package touched per commit
TOUCHED=`git show --pretty="format:" --name-only | grep . | head -1`
PKGDIR=`dirname $TOUCHED`
if [ "$PKGDIR" = "." ]
then
echo Nothing to test
else
pushd $PKGDIR > /dev/null
makepkg -f -s --noconfirm --skippgpcheck --noprogressbar
popd > /dev/null
fi