<commit_before>sudo: required
dist: trusty

language: cpp

compiler:
  - gcc

install:
  - sudo add-apt-repository -y ppa:libreoffice/ppa
  - sudo add-apt-repository -y ppa:kubuntu-ppa/backports
  - sudo apt-get update
  - sudo apt-get install -y libfreetype6-dev libfontconfig1-dev libpango1.0-dev librsvg2-dev liblcms2-dev libzip-dev libcdr-dev libicu-dev libcppunit-dev libopencolorio-dev librevenge-dev libboost-all-dev gtk-doc-tools libharfbuzz-dev libselinux1-dev libpoppler-glib-dev
  - sudo rm -rf /usr/include/libcdr* /usr/lib*/*cdr* /usr/lib*/pkgconfig/*cdr*
  - git clone https://github.com/LibreOffice/libcdr
  - cd libcdr
  - sh autogen.sh
  - ./configure --prefix=/usr
  - make -j2
  - sudo make install
  - cd ..
  - git clone https://github.com/ImageMagick/ImageMagick
  - cd ImageMagick
  - git checkout tags/7.0.2-1
  - ./configure --prefix=/usr --disable-docs --disable-deprecated --with-magick-plus-plus=yes --with-quantum-depth=32 --without-dps --without-djvu --without-fftw --without-fpx --without-gslib --without-gvc --without-jbig --without-jpeg --with-lcms --without-openjp2 --without-lqr --without-lzma --without-openexr --without-pango --without-png --without-rsvg --without-tiff --without-webp --without-xml --with-zlib --without-bzlib --enable-static --enable-shared --enable-hdri --with-freetype --with-fontconfig --without-x --without-modules --without-wmf
  - make -j2
  - sudo make install
  - cd ..
  - wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.42.tar.bz2
  - tar xf harfbuzz-0.9.42.tar.bz2
  - cd harfbuzz-0.9.42
  - env CFLAGS="-fPIC" ./configure --prefix=/usr/local --enable-static --disable-shared
  - make -j2
  - sudo make install
  - cd ..
  - wget http://ftp.gnome.org/pub/GNOME/sources/pango/1.38/pango-1.38.1.tar.xz
  - tar xf pango-1.38.1.tar.xz
  - cd pango-1.38.1
  - env CFLAGS="-fPIC" ./configure --prefix=/usr/local --enable-static --disable-shared
  - make -j2
  - sudo make install
  - cd ..

script:
  - git submodule update -i --recursive
  - PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make IM=7 CXXFLAGS_ADD="-DLEGACY"
  - make -C OCL<commit_msg>travis<commit_after>sudo: required
dist: trusty

language: cpp

compiler:
  - gcc

install:
  - sudo add-apt-repository -y ppa:libreoffice/ppa
  - sudo add-apt-repository -y ppa:kubuntu-ppa/backports
  - sudo apt-get update
  - sudo apt-get install -y libfreetype6-dev libfontconfig1-dev libpango1.0-dev librsvg2-dev liblcms2-dev libzip-dev libcdr-dev libicu-dev libcppunit-dev libopencolorio-dev librevenge-dev libboost-all-dev gtk-doc-tools libharfbuzz-dev libselinux1-dev libpoppler-glib-dev
  - sudo rm -rf /usr/include/libcdr* /usr/lib*/*cdr* /usr/lib*/pkgconfig/*cdr*
  - git clone https://github.com/LibreOffice/libcdr
  - cd libcdr
  - sh autogen.sh
  - ./configure --prefix=/usr
  - make -j2
  - sudo make install
  - cd ..
  - git clone https://github.com/ImageMagick/ImageMagick
  - cd ImageMagick
  - git checkout tags/7.0.2-1
  - ./configure --prefix=/usr --disable-docs --disable-deprecated --with-magick-plus-plus=yes --with-quantum-depth=32 --without-dps --without-djvu --without-fftw --without-fpx --without-gslib --without-gvc --without-jbig --without-jpeg --with-lcms --without-openjp2 --without-lqr --without-lzma --without-openexr --without-pango --without-png --without-rsvg --without-tiff --without-webp --without-xml --with-zlib --without-bzlib --enable-static --enable-shared --enable-hdri --with-freetype --with-fontconfig --without-x --without-modules --without-wmf
  - make -j2
  - sudo make install
  - cd ..
  - wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.42.tar.bz2
  - tar xf harfbuzz-0.9.42.tar.bz2
  - cd harfbuzz-0.9.42
  - env CFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure --prefix=/usr/local --enable-static --disable-shared
  - make -j2
  - sudo make install
  - cd ..
  - wget http://ftp.gnome.org/pub/GNOME/sources/pango/1.38/pango-1.38.1.tar.xz
  - tar xf pango-1.38.1.tar.xz
  - cd pango-1.38.1
  - env CFLAGS="-fPIC" CPPFLAGS="-fPIC" ./configure --prefix=/usr/local --enable-static --disable-shared
  - make -j2
  - sudo make install
  - cd ..

script:
  - git submodule update -i --recursive
  - PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make IM=7 CXXFLAGS_ADD="-DLEGACY"
  - make -C OCL
{'fraction_non_alphanumeric': 0.15962660443407234, 'fraction_numerical': 0.022403733955659276, 'mean_word_length': 2.6916451335055984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1239694', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1636, 'n_words': 323}