2017-10-31 19:42:08 +00:00
version : 2
2017-11-01 07:15:27 +00:00
2017-10-31 19:42:08 +00:00
jobs :
2018-03-23 14:07:01 +00:00
macos-llvm-gcc-4.2 :
macos :
xcode : "8.3.3"
steps :
- checkout
- run : brew update-reset
- run : brew install wget pkg-config libtool ragel freetype glib cairo
- run : wget https://packages.macports.org/llvm-gcc42/llvm-gcc42-2336.11_3+universal.darwin_15.i386-x86_64.tbz2 && tar zxvf llvm-gcc42-2336.11_3+universal.darwin_15.i386-x86_64.tbz2
- run : CC=$PWD/opt/local/bin/llvm-gcc-4.2 CXX=$PWD/opt/local/bin/llvm-g++-4.2 ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo
# Ignoring assembler complains, https://stackoverflow.com/a/39867021
- run : make 2>&1 | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*'
- run : make check || .ci/fail.sh
2018-03-25 14:15:50 +00:00
macos-notest-apple-gcc-i686-4.2 :
macos :
xcode : "8.3.3"
steps :
- checkout
- run : brew update-reset
- run : brew install wget pkg-config libtool ragel
- run : wget https://packages.macports.org/apple-gcc42/apple-gcc42-5666.3_15+universal.darwin_15.i386-x86_64.tbz2 && tar zxvf apple-gcc42-5666.3_15+universal.darwin_15.i386-x86_64.tbz2
- run : CPP=$PWD/opt/local/bin/i686-apple-darwin15-cpp-apple-4.2.1 CC=$PWD/opt/local/bin/i686-apple-darwin15-gcc-apple-4.2.1 CXX=$PWD/opt/local/bin/i686-apple-darwin15-g++-apple-4.2.1 ./autogen.sh
# Ignoring assembler complains, https://stackoverflow.com/a/39867021
- run : make 2>&1 | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*'
2018-01-10 20:21:56 +00:00
distcheck :
2017-11-21 06:07:26 +00:00
docker :
2018-01-22 15:07:26 +00:00
- image : ubuntu:17.10
2017-11-21 06:07:26 +00:00
steps :
- checkout
2018-02-11 12:10:55 +00:00
- run : apt update && apt install -y ninja-build binutils libtool autoconf automake make cmake gcc g++ pkg-config ragel gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
- run : pip install fonttools
2018-02-15 09:25:24 +00:00
- run : ./autogen.sh
- run : make
- run : make distcheck || .ci/fail.sh
- run : rm -rf harfbuzz-*
2018-01-22 15:07:26 +00:00
- run : make distdir && cd harfbuzz-* && cmake -DHB_CHECK=ON -Bbuild -H. -GNinja && ninja -Cbuild && CTEST_OUTPUT_ON_FAILURE=1 ninja -Cbuild test && ninja -Cbuild install
2017-11-21 06:07:26 +00:00
2018-06-25 17:53:43 +00:00
alpine-O3-NOMMAP :
2017-11-01 21:10:55 +00:00
docker :
2018-01-10 20:21:56 +00:00
- image : alpine
2017-11-01 21:10:55 +00:00
steps :
- checkout
2018-01-10 20:21:56 +00:00
- run : apk update && apk add ragel make pkgconfig libtool autoconf automake gettext gcc g++ glib-dev freetype-dev cairo-dev
2018-02-20 07:23:10 +00:00
# C??FLAGS are not needed for a regular build
2018-06-30 21:24:14 +00:00
- run : CFLAGS="-O3" CXXFLAGS="-O3 -DHB_NO_MMAP" ./autogen.sh
2018-02-15 09:25:24 +00:00
- run : make
- run : make check || .ci/fail.sh
2017-11-02 16:33:12 +00:00
2018-03-09 11:55:59 +00:00
archlinux-debug-O0-py3 :
2017-11-02 16:33:12 +00:00
docker :
- image : base/devel
steps :
- checkout
2018-03-09 11:55:59 +00:00
- run : pacman --noconfirm -Syu freetype2 cairo icu gettext gobject-introspection gcc gcc-libs glib2 graphite pkg-config ragel python python-pip
- run : pip install fonttools
2018-02-20 07:23:10 +00:00
# C??FLAGS are not needed for a regular build
- run : CFLAGS="-O0" CXXFLAGS="-O0" CPPFLAGS="-DHB_DEBUG" ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
2018-02-15 09:25:24 +00:00
- run : make
- run : make check || .ci/fail.sh
2017-11-01 21:10:55 +00:00
2018-02-24 13:12:12 +00:00
clang-O3-O0 :
docker :
- image : multiarch/crossbuild
steps :
- checkout
2018-06-27 13:44:52 +00:00
- run : apt update || true
- run : apt install -y ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
2018-02-24 13:12:12 +00:00
- run : pip install fonttools
- run : wget http://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2 && tar xf freetype-2.9.tar.bz2 && cd freetype-2.9 && ./autogen.sh && ./configure && make -j4 && cd ..
- run : CFLAGS="-O3" CXXFLAGS="-O3" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2
- run : make
- run : LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs" make check || .ci/fail.sh
- run : CFLAGS="-O0" CXXFLAGS="-O0" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2
- run : make
- run : LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs" make check || .ci/fail.sh
2018-01-10 20:21:56 +00:00
fedora-outoftreebuild :
2017-11-01 10:05:46 +00:00
docker :
2018-01-10 20:21:56 +00:00
- image : fedora
2017-11-01 10:05:46 +00:00
steps :
- checkout
2018-01-18 21:42:31 +00:00
- run : dnf install -y pkg-config ragel gcc gcc-c++ automake autoconf libtool make which glib2-devel freetype-devel cairo-devel libicu-devel gobject-introspection-devel graphite2-devel redhat-rpm-config python || true
2018-01-10 20:21:56 +00:00
- run : NOCONFIGURE=1 ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
2018-02-15 09:25:24 +00:00
- run : mkdir build && cd build && ../configure && make && (make check || ../.ci/fail.sh)
2017-11-01 10:05:46 +00:00
2018-01-10 20:21:56 +00:00
cmake-gcc :
2017-10-31 19:42:08 +00:00
docker :
2018-01-22 15:07:26 +00:00
- image : ubuntu:17.10
2017-10-31 19:42:08 +00:00
steps :
- checkout
2018-02-11 12:10:55 +00:00
- run : apt update && apt install -y ninja-build binutils cmake gcc g++ pkg-config ragel gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
- run : pip install fonttools
2018-01-16 10:48:09 +00:00
- run : cmake -DHB_CHECK=ON -Bbuild -H. -GNinja
2017-12-05 22:49:25 +00:00
- run : ninja -Cbuild
2018-01-11 04:45:06 +00:00
- run : CTEST_OUTPUT_ON_FAILURE=1 ninja -Cbuild test
2017-12-06 14:57:27 +00:00
- run : ninja -Cbuild install
2017-10-31 19:42:08 +00:00
2018-01-10 20:21:56 +00:00
cmake-oracledeveloperstudio :
2017-12-07 08:05:36 +00:00
docker :
2018-01-10 20:21:56 +00:00
- image : fedora
2017-12-07 08:05:36 +00:00
steps :
- checkout
2018-05-23 09:07:57 +00:00
- run : dnf install -y gcc ragel cmake make which glib2-devel freetype-devel cairo-devel libicu-devel graphite2-devel wget tar bzip2 python libnsl || true
2018-01-10 20:21:56 +00:00
- run : wget http://$ODSUSER:$ODSPASS@behdad.org/harfbuzz-private/OracleDeveloperStudio12.6-linux-x86-bin.tar.bz2 && tar xf OracleDeveloperStudio12.6-linux-x86-bin.tar.bz2 --owner root --group root --no-same-owner
2018-05-23 09:07:57 +00:00
- run : CC=/root/project/OracleDeveloperStudio12.6-linux-x86-bin/developerstudio12.6/bin/suncc CXX=/root/project/OracleDeveloperStudio12.6-linux-x86-bin/developerstudio12.6/bin/sunCC cmake -DHB_HAVE_GRAPHITE2=ON -DHB_BUILTIN_UCDN=ON -DHB_HAVE_GLIB=ON -DHB_HAVE_FREETYPE=ON -Bbuild -H.
2018-01-10 20:21:56 +00:00
- run : make -Cbuild
2018-01-11 04:45:06 +00:00
- run : CTEST_OUTPUT_ON_FAILURE=1 make -Cbuild test
2018-01-10 20:21:56 +00:00
- run : make -Cbuild install
crosscompile-notest-djgpp :
docker :
- image : quay.io/ebraminio/djgpp
steps :
- checkout
- run : apt update && apt install -y ragel pkg-config libtool autoconf
- run : CFLAGS="-Wno-attributes" CXXFLAGS="-Wno-attributes" ./autogen.sh --prefix=/usr/local/djgpp --host=i586-pc-msdosdjgpp
- run : make
2017-12-07 08:05:36 +00:00
2018-01-10 20:21:56 +00:00
crosscompile-notest-freebsd9 :
docker :
- image : donbowman/freebsd-cross-build
steps :
- checkout
- run : apt update && apt install -y pkg-config ragel
- run : ./autogen.sh --prefix=/freebsd --host=x86_64-pc-freebsd9
- run : make
crosscompile-notest-psvita :
2017-11-01 09:10:18 +00:00
docker :
- image : dockcross/base
steps :
- checkout
- run : apt update && apt install ragel
- run : git clone https://github.com/vitasdk/vdpm && cd vdpm && ./bootstrap-vitasdk.sh
2017-12-24 22:02:46 +00:00
- run : ./autogen.sh --prefix=/usr/local/vitasdk/arm-vita-eabi --host=arm-vita-eabi
- run : make
2017-11-01 09:10:18 +00:00
2018-01-10 20:21:56 +00:00
crosscompile-cmake-notest-android-arm :
2017-10-31 19:42:08 +00:00
docker :
- image : dockcross/android-arm
steps :
- checkout
- run : apt update && apt install ragel
2017-12-24 22:02:46 +00:00
- run : cmake -Bbuild -H. -GNinja
- run : ninja -Cbuild
2017-10-31 19:42:08 +00:00
2018-01-10 20:21:56 +00:00
crosscompile-cmake-notest-browser-asmjs :
2017-10-31 19:42:08 +00:00
docker :
- image : dockcross/browser-asmjs
steps :
- checkout
- run : apt update && apt install ragel
2017-12-24 22:02:46 +00:00
- run : cmake -Bbuild -H. -GNinja
- run : ninja -Cbuild
2017-10-31 19:42:08 +00:00
2018-01-10 20:21:56 +00:00
crosscompile-cmake-notest-linux-arm64 :
2017-10-31 19:42:08 +00:00
docker :
2017-10-31 20:25:46 +00:00
- image : dockcross/linux-arm64
2017-10-31 19:42:08 +00:00
steps :
- checkout
- run : apt update && apt install ragel
2017-12-24 22:02:46 +00:00
- run : cmake -Bbuild -H. -GNinja
- run : ninja -Cbuild
2017-10-31 19:42:08 +00:00
2018-01-10 20:21:56 +00:00
crosscompile-cmake-notest-linux-mips :
2017-10-31 19:42:08 +00:00
docker :
- image : dockcross/linux-mips
steps :
- checkout
- run : apt update && apt install ragel
2017-12-24 22:02:46 +00:00
- run : cmake -Bbuild -H. -GNinja
- run : ninja -Cbuild
2017-10-31 19:42:08 +00:00
2018-01-10 20:21:56 +00:00
crosscompile-cmake-notest-windows-x64 :
2017-10-31 19:42:08 +00:00
docker :
- image : dockcross/windows-x64
steps :
- checkout
- run : apt update && apt install ragel
2017-12-24 22:02:46 +00:00
- run : cmake -Bbuild -H. -GNinja
- run : ninja -Cbuild
2017-10-31 19:42:08 +00:00
workflows :
version : 2
build :
jobs :
2018-03-23 14:07:01 +00:00
# macOS
- macos-llvm-gcc-4.2
2018-03-25 14:15:50 +00:00
- macos-notest-apple-gcc-i686-4.2
2018-03-23 14:07:01 +00:00
2018-01-10 20:21:56 +00:00
# both autotools and cmake
2018-01-04 06:41:34 +00:00
- distcheck
2018-01-10 20:21:56 +00:00
# autotools based builds
2018-06-25 17:53:43 +00:00
- alpine-O3-NOMMAP
2018-03-09 11:55:59 +00:00
- archlinux-debug-O0-py3
2018-02-24 13:12:12 +00:00
- clang-O3-O0
2018-01-10 20:21:56 +00:00
- fedora-outoftreebuild
# cmake based builds
- cmake-gcc
- cmake-oracledeveloperstudio
# crosscompiles
# they can't be test thus are without tests
## autotools
- crosscompile-notest-djgpp
- crosscompile-notest-freebsd9
- crosscompile-notest-psvita
## cmake
- crosscompile-cmake-notest-android-arm
- crosscompile-cmake-notest-browser-asmjs
- crosscompile-cmake-notest-linux-arm64
- crosscompile-cmake-notest-linux-mips
- crosscompile-cmake-notest-windows-x64