appveyor iterate

This commit is contained in:
John Kerl 2017-06-24 12:56:24 -04:00
parent d6912ef401
commit 87962e062b
2 changed files with 16 additions and 7 deletions

15
appveyor-build.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
echo ================================================================
cd $APPVEYOR_BUILD_FOLDER
pwd
ls -l
echo ================================================================
sed 's/-lm/-lm -lpcreposix/' c/Makefile.am > temp; mv temp c/Makefile.am
sed 's/-lm/-lm -lpcreposix/' c/unit_test/Makefile.am > temp; mv temp c/unit_test/Makefile.am
sed 's/#undef MLR_ON_MSYS2/#define MLR_ON_MSYS2/' c/lib/mlr_arch.h > temp; mv temp c/lib/mlr_arch.h
echo ================================================================
./configure
make

View file

@ -9,10 +9,4 @@ install:
- bash -lc "pacman --noconfirm -S msys2-runtime"
build_script:
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; pwd"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; ls -l"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; sed 's/-lm/-lm -lpcreposix/' c/Makefile.am > temp; mv temp c/Makefile.am"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; sed 's/-lm/-lm -lpcreposix/' c/unit_test/Makefile.am > temp; mv temp c/unit_test/Makefile.am"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; sed 's/#undef MLR_ON_MSYS2/#define MLR_ON_MSYS2/' c/lib/mlr_arch.h > temp; mv temp c/lib/mlr_arch.h"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./configure"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; make"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; bash -x appveyor-build.sh"