diff --git a/appveyor-build.sh b/appveyor-build.sh new file mode 100755 index 000000000..2c27ff425 --- /dev/null +++ b/appveyor-build.sh @@ -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 diff --git a/appveyor.yml b/appveyor.yml index f92175d64..0de911ce1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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"