Add Drone CI build scripts.

pull/77/head
Qian Hong 9 years ago
parent 51af4082cc
commit f7486a5b9c
  1. 13
      .drone.yml
  2. 20
      ci-build.sh

@ -0,0 +1,13 @@
build:
image: fracting/msys32
pull: true
shell: $$platform
commands:
- export platform=$$platform
- ./ci-build.sh
matrix:
platform:
- bash
- msys32
- mingw32

@ -0,0 +1,20 @@
#!/bin/bash
set -e
if test "$platform" = "bash"; then
echo "Building on Ubuntu Linux x86_64"
sudo apt-get install build-essential automake
elif test "$platform" = "msys32"; then
echo "Building on Msys2 i686"
elif test "$platform" = "mingw32"; then
echo "Building on MinGW-w64 i686"
pacman --sync --noconfirm --noprogressbar mingw-w64-i686-gettext
else
echo "unknown environment!"
exit 1
fi
./autogen.sh
make
make check || echo WARNING: make check failed
Loading…
Cancel
Save