<commit_before>sudo: false

compiler: gcc
language: c
os: linux

services:
  - docker

before_install:
  - docker pull grilofw/grilo:base
  
script:
  - echo FROM grilofw/grilo:base > Dockerfile
  - echo ADD . /root/grilo >> Dockerfile
  - echo WORKDIR /root/grilo >> Dockerfile
  - echo RUN ./autogen.sh \
    --prefix /usr \
    --enable-gtk-doc
    --enable-introspection \
    --enable-vala \
    --enable-test-ui \
    --enable-grl-net \
    --enable-grl-pls >> Dockerfile
  - echo RUN make >> Dockerfile
  - echo RUN make install >> Dockerfile
  - docker build -t grilofw/grilo:core .
  
after_success:
  - if [[ "$TRAVIS_BRANCH" == "master" && -n "$DOCKER_USERNAME" ]]; then
      docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
      docker push grilofw/grilo:core;
    fi<commit_msg>travis: add Meson build<commit_after>sudo: false

compiler: gcc
language: c
os: linux

services:
  - docker

env:
  - BUILD=autotools
  - BUILD=meson

before_install:
  - docker pull grilofw/grilo:base
  - echo FROM grilofw/grilo:base > Dockerfile
  - echo ADD . /root/grilo >> Dockerfile
  - echo WORKDIR /root/grilo >> Dockerfile
  
script:
  - if [[ "$BUILD" == "autotools" ]]; then
     echo RUN ./autogen.sh \
       --prefix /usr \
       --enable-gtk-doc
       --enable-introspection \
       --enable-vala \
       --enable-test-ui \
       --enable-grl-net \
       --enable-grl-pls >> Dockerfile;
     echo RUN make >> Dockerfile;
     echo RUN make install >> Dockerfile;
     docker build -t grilofw/grilo:core .;
    fi
  - if [[ "$BUILD" == "meson" ]]; then
      echo RUN meson \
        --prefix /usr \
        -Denable-grl-net=true \
        -Denable-grl-pls=true \
        -Denable-gtk-doc=true \
        -Denable-introspection=true \
        -Denable-test-ui=true \
        -Denable-vala=true \
        . build >> Dockerfile;
      echo RUN ninja -C build >> Dockerfile;
      echo RUN ninja -C build install >> Dockerfile;
      docker build .;
    fi

after_success:
  - if [[ "$BUILD" == "autotools" && "$TRAVIS_BRANCH" == "master" && -n "$DOCKER_USERNAME" ]]; then
      docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
      docker push grilofw/grilo:core;
    fi
{'fraction_non_alphanumeric': 0.13915416098226466, 'fraction_numerical': 0.0, 'mean_word_length': 2.193033381712627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3453618', 'n_tokens_mistral': 837, 'n_tokens_neox': 790, 'n_words': 183}