Add drone build script.
This commit is contained in:
14
.drone.yml
Normal file
14
.drone.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
build:
|
||||
image: fracting/msys32
|
||||
shell: msys32
|
||||
commands:
|
||||
- drone/build.sh
|
||||
|
||||
notify:
|
||||
irc:
|
||||
prefix: build
|
||||
nick: MINGW-packages
|
||||
channel: msys2
|
||||
server:
|
||||
host: irc.oftc.net
|
||||
port: 6667
|
||||
13
drone/build.sh
Executable file
13
drone/build.sh
Executable 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-mingw -f -s --noconfirm --skippgpcheck --noprogressbar
|
||||
popd > /dev/null
|
||||
fi
|
||||
Reference in New Issue
Block a user