diff --git a/.appveyor.yml b/.appveyor.yml index dca32bb7..59702dd3 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -16,11 +16,8 @@ environment: MSYSTEM: MINGW64 BIT: 64 -install: - -'%APPVEYOR_BUILD_FOLDER%\win_install.bat' - build_script: - '%APPVEYOR_BUILD_FOLDER%\win_build.bat' test_script: - - 'echo No tests yet' + - '%APPVEYOR_BUILD_FOLDER%\test\test_libpostal.exe' diff --git a/win_build.bat b/win_build.bat index 743015ba..f8f1b7b5 100644 --- a/win_build.bat +++ b/win_build.bat @@ -14,8 +14,9 @@ IF %COMPILER%==msys2 ( @echo on SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%" - bash -lc "cd $APPVEYOR_BUILD_FOLDER && . bootstrap.sh" - bash -lc "cd $APPVEYOR_BUILD_FOLDER && . configure --datadir=$APPVEYOR_BUILD_FOLDER/data" + bash -lc "cd $APPVEYOR_BUILD_FOLDER && cp -rf windows/* ./" + bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap.sh" + bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --datadir=/c" bash -lc "cd $APPVEYOR_BUILD_FOLDER && make" bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install" )