version: "{build}" environment: global: # Only need one flavour of dictionary CONFIGURE_FLAGS: --with-hunspell-dir=/mingw64/share/hunspell VERBOSE: 1 # Get test logs in output matrix: - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 ASAN: 'yes' - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 - APPVEYOR_BUILD_WORKER_IMAGE: macos # MSYS does not have hunspell packages # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 # MSYSTEM: MSYS - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 MSYSTEM: MINGW64 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 MSYSTEM: MINGW32 for: - matrix: only: - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 init: - sudo apt-get -y update && sudo apt-get -y upgrade - sudo apt-get -y install libglib2.0-dev libaspell-dev hspell libhunspell-dev libvoikko-dev voikko-fi aspell-en libunittest++-dev hunspell-fr libicu-dev ninja-build - wget https://github.com/nuspell/nuspell/archive/refs/tags/v5.0.0.tar.gz -O - | tar -xz - cmake -S nuspell-* -B nuspell-build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=0 - cmake --build nuspell-build - sudo cmake --install nuspell-build - rm -rf nuspell-* build_script: - export ASAN - ./build-aux/appveyor-build.sh - matrix: only: - APPVEYOR_BUILD_WORKER_IMAGE: macos init: # Note: aspell should work on macOS, but has been removed because one of # the tests fails; see https://github.com/GNUAspell/aspell/issues/555 - brew install glib dbus-glib hspell hunspell libvoikko unittest-cpp environment: LDFLAGS: "-L/usr/local/opt/flex/lib -L/usr/local/opt/texinfo/lib" CPPFLAGS: "-I/usr/local/opt/flex/include" PYTHON: /usr/local/bin/python3 build_script: # Prepend optional brew binary directories to PATH # Also prepend /usr/local/bin to work around https://github.com/appveyor/ci/issues/3326 - export PATH="/usr/local/opt/flex/bin:/usr/local/opt/m4/bin:/usr/local/opt/texinfo/bin:/usr/local/opt/gettext/bin:/usr/local/opt/cython/bin:/usr/local/bin:$PATH" - ./build-aux/appveyor-build.sh - matrix: only: - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 init: - git config --global core.autocrlf input install: - C:\msys64\usr\bin\bash.exe -l c:/projects/enchant/build-aux/appveyor-install.sh # FIXME: add all available providers (just aspell?) build_script: - C:\msys64\usr\bin\bash.exe -lc "cd c:/projects/enchant && ./bootstrap && ./configure --enable-relocatable %CONFIGURE_FLAGS% && make && make DISTCHECK_CONFIGURE_FLAGS=\"--enable-relocatable %CONFIGURE_FLAGS%\" distcheck"