Simplify calls to collect-logs.sh

This commit is contained in:
Khaled Hosny 2018-02-15 11:25:24 +02:00
parent 139c9928f6
commit 8e3b4c0e11
4 changed files with 16 additions and 8 deletions

View File

@ -4,3 +4,6 @@ for f in $(find . -name '*.log' -not -name 'config.log'); do
echo '====' $f '====' echo '====' $f '===='
cat $f cat $f
done done
# Intentionally exiting with non-zero.
exit 1

View File

@ -9,7 +9,10 @@ jobs:
- checkout - checkout
- 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: 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 - run: pip install fonttools
- run: ./autogen.sh && (make distcheck || (cd harfbuzz-* && ../.ci/collect-logs.sh && false)) && rm -rf harfbuzz-* - run: ./autogen.sh
- run: make
- run: make distcheck || .ci/fail.sh
- run: rm -rf harfbuzz-*
- 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 - 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
alpine: alpine:
@ -19,7 +22,8 @@ jobs:
- checkout - checkout
- run: apk update && apk add ragel make pkgconfig libtool autoconf automake gettext gcc g++ glib-dev freetype-dev cairo-dev - run: apk update && apk add ragel make pkgconfig libtool autoconf automake gettext gcc g++ glib-dev freetype-dev cairo-dev
- run: ./autogen.sh - run: ./autogen.sh
- run: make && (make check || (.ci/collect-logs.sh && false)) - run: make
- run: make check || .ci/fail.sh
archlinux: archlinux:
docker: docker:
@ -28,7 +32,8 @@ jobs:
- checkout - checkout
- run: pacman --noconfirm -Syu freetype2 cairo icu gettext gobject-introspection gcc gcc-libs glib2 graphite pkg-config ragel python - run: pacman --noconfirm -Syu freetype2 cairo icu gettext gobject-introspection gcc gcc-libs glib2 graphite pkg-config ragel python
- run: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 - run: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
- run: make && (make check || (.ci/collect-logs.sh && false)) - run: make
- run: make check || .ci/fail.sh
fedora-outoftreebuild: fedora-outoftreebuild:
docker: docker:
@ -37,7 +42,7 @@ jobs:
- checkout - checkout
- 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 - 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
- run: NOCONFIGURE=1 ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 - run: NOCONFIGURE=1 ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
- run: mkdir build && cd build && ../configure && make && (make check || (.ci/collect-logs.sh && false)) - run: mkdir build && cd build && ../configure && make && (make check || ../.ci/fail.sh)
cmake-gcc: cmake-gcc:
docker: docker:

View File

@ -27,7 +27,7 @@ matrix:
- ./autogen.sh - ./autogen.sh
- ./configure $CONFIGURE_OPTS --enable-gtk-doc - ./configure $CONFIGURE_OPTS --enable-gtk-doc
- make - make
- make check || (.ci/collect-logs.sh && false) - make check || .ci/fail.sh
after_success: after_success:
- bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking - bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking
- bash .ci/deploy-docs.sh - bash .ci/deploy-docs.sh
@ -43,7 +43,7 @@ matrix:
- ./autogen.sh - ./autogen.sh
- ./configure $CONFIGURE_OPTS - ./configure $CONFIGURE_OPTS
- make - make
- make check || (.ci/collect-logs.sh && false) - make check || .ci/fail.sh
- os: osx - os: osx
compiler: clang compiler: clang
@ -59,7 +59,7 @@ matrix:
- ./autogen.sh - ./autogen.sh
- ./configure $CONFIGURE_OPTS --with-coretext - ./configure $CONFIGURE_OPTS --with-coretext
- make - make
- make check || (.ci/collect-logs.sh && false) - make check || .ci/fail.sh
notifications: notifications:
irc: "irc.freenode.org#harfbuzz" irc: "irc.freenode.org#harfbuzz"

View File

@ -44,7 +44,7 @@ build_script:
- 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest --output-on-failure -C %configuration%' - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest --output-on-failure -C %configuration%'
- 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-$MSYS2_ARCH-{freetype,cairo,icu,gettext,gobject-introspection,gcc,gcc-libs,glib2,graphite2,pkg-config,python2}"' - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-$MSYS2_ARCH-{freetype,cairo,icu,gettext,gobject-introspection,gcc,gcc-libs,glib2,graphite2,pkg-config,python2}"'
- 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; ./autogen.sh --with-uniscribe --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 --build=%MINGW_CHOST% --host=%MINGW_CHOST% --prefix=%MINGW_PREFIX%; make; make check || (.ci/collect-logs.sh && false)"' - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; ./autogen.sh --with-uniscribe --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 --build=%MINGW_CHOST% --host=%MINGW_CHOST% --prefix=%MINGW_PREFIX%; make; make check || .ci/fail.sh"'
cache: cache:
- c:\tools\vcpkg\installed\ - c:\tools\vcpkg\installed\