summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2020-11-24 12:45:34 +0000
committerReuben Thomas <rrt@sc3d.org>2020-11-25 09:34:44 +0000
commit07c4f3fb2056536853fcc237c6d05d481d38fbea (patch)
tree72690c01c352e269bb7fcd8dc39999afa66211af
parent7cf2107af9e55eecce982d41ecc359d71d661c97 (diff)
downloadenchant-07c4f3fb2056536853fcc237c6d05d481d38fbea.tar.gz
Switch from Travis to AppVeyor
-rw-r--r--.appveyor.yml58
-rw-r--r--.travis.yml44
-rw-r--r--appveyor.yml22
-rwxr-xr-xbuild-aux/appveyor-build.sh (renamed from build-aux/travis-build.sh)4
-rwxr-xr-xbuild-aux/appveyor-install.sh26
5 files changed, 64 insertions, 90 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644
index 0000000..e09fe5c
--- /dev/null
+++ b/.appveyor.yml
@@ -0,0 +1,58 @@
+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: Ubuntu
+ - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
+ ASAN: 'yes'
+ - 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: Ubuntu
+ init:
+ - sudo add-apt-repository -y ppa:nuspell/ppa
+ - sudo apt-get -y install libglib2.0-dev libaspell-dev hspell libhunspell-dev libvoikko-dev voikko-fi aspell-en libunittest++-dev hunspell-fr libnuspell-dev
+ build_script:
+ - ./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/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"
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 47ce66d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-os: linux
-language: cpp
-dist: bionic
-
-addons:
- apt:
- sources:
- - sourceline: 'ppa:nuspell/ppa'
- packages:
- - libglib2.0-dev
- - libaspell-dev
- - hspell
- - libhunspell-dev
- - libvoikko-dev
- - voikko-fi
- - aspell-en
- - libunittest++-dev
- - hunspell-fr
- - libnuspell-dev
- homebrew:
- # Note: aspell should work on macOS, but has been removed because one of
- # the tests fails; see https://github.com/Homebrew/homebrew-core/issues/4097
- packages:
- - glib
- - dbus-glib
- - hspell
- - hunspell
- - libvoikko
- - unittest-cpp
- update: true
-
-env:
- global:
- - VERBOSE=1 # Get test logs in Travis logs
-
-jobs:
- include:
- - os: linux
- env:
- - ASAN=yes
- - os: osx
-
-script:
- - ./build-aux/travis-build.sh
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 922a0f6..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-version: "{build}"
-clone_folder: c:\projects\enchant
-
-environment:
- global:
- # Only need one flavour of dictionary
- CONFIGURE_FLAGS: --with-hunspell-dir=/mingw64/share/hunspell
- VERBOSE: 1 # Get test logs in output
- matrix:
- - MSYSTEM: MSYS
- - MSYSTEM: MINGW64
- - MSYSTEM: MINGW32
-
-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"
diff --git a/build-aux/travis-build.sh b/build-aux/appveyor-build.sh
index 371326b..6472d91 100755
--- a/build-aux/travis-build.sh
+++ b/build-aux/appveyor-build.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Build on Travis
+# Build on AppVeyor
# Written by Reuben Thomas 2020.
# This file is in the public domain.
@@ -14,4 +14,4 @@ fi
make
make distcheck
-if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo locale-gen fr_FR.UTF-8; env LANG=fr_FR.UTF-8 make check ; fi
+if [[ "$APPVEYOR_BUILD_WORKER_IMAGE" == "Ubuntu" ]]; then sudo locale-gen fr_FR.UTF-8; env LANG=fr_FR.UTF-8 make check ; fi
diff --git a/build-aux/appveyor-install.sh b/build-aux/appveyor-install.sh
index 2d96d6b..459c955 100755
--- a/build-aux/appveyor-install.sh
+++ b/build-aux/appveyor-install.sh
@@ -4,37 +4,19 @@
# Get mingw type, if any, from MSYSTEM
case $MSYSTEM in
MINGW32)
- MINGW_BITS=i686
+ MINGW_ARCH=i686
PREFIX=/mingw32
;;
MINGW64)
- MINGW_BITS=x86_64
+ MINGW_ARCH=x86_64
PREFIX=/mingw64
;;
- MSYS)
- PREFIX=/usr
- ;;
esac
# GLib
-if test -n "$MINGW_BITS"; then
- pacman --noconfirm -S mingw-w64-$MINGW_BITS-glib2
-fi
-pacman --noconfirm -S glib2-devel
-
-# Hunspell dictionary (only need one flavour)
-wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-hunspell-en-2016.11.20-2-any.pkg.tar.xz
-pacman --noconfirm -U mingw-w64-x86_64-hunspell-en-2016.11.20-2-any.pkg.tar.xz
-
-# Hunspell
-wget https://github.com/hunspell/hunspell/archive/v1.6.0.tar.gz
-tar zxvf v1.6.0.tar.gz || true # Error in unpacking (symlink README before file README.md)
-cd hunspell-1.6.0
-ln -s README.md README && autoreconf -vfi
-./configure --prefix=$PREFIX && make && make install
-cd ..
+pacman --noconfirm -S mingw-w64-$MINGW_ARCH-glib2 glib2-devel mingw-w64-$MINGW_ARCH-hunspell mingw-w64-$MINGW_ARCH-hunspell-en
-# UnitTest++
+# UnitTest++ is not packaged in mingw
wget https://github.com/unittest-cpp/unittest-cpp/releases/download/v1.6.1/unittest-cpp-1.6.1.tar.gz
tar zxvf unittest-cpp-1.6.1.tar.gz
cd unittest-cpp-1.6.1