<commit_before>sudo: required

language: c

services:
  - docker

matrix:
  include:
    ##- env: IMG=quid2/eta CMD="etlas update;etlas build;etlas test :spec"

    ##- env: IMG=quid2/x64-ubuntu-ghcjs CMD="stack test --stack-yaml stack-ghcjs.yaml"

    ##- env: IMG=quid2/x64-ubuntu-ghcjs-9.21 CMD="stack test --stack-yaml stack-ghcjs-9.21.yaml"

    ##- env: IMG=quid2/x32-ubuntu-cabal CMD="cabal v2-build --only-dependencies --enable-tests;cabal v2-build;cabal v2-test"
    # MANY failures

    # ghc 7.10.3
    # - env: IMG=quid2/x64-ubuntu-stack-lts-6.35 CMD="stack test --resolver lts-6.35"

    # ghc 8.0.2
    # - env: IMG=quid2/x64-ubuntu-stack-lts-9.21 CMD="stack test --resolver lts-9.21"

    # ghc 8.2.2
    - env: IMG=quid2/x64-ubuntu-stack-lts-11.22 CMD="stack test --resolver lts-11.22"
    # ghc 8.4.4
    - env: IMG=quid2/x64-ubuntu-stack-lts-12.26 CMD="stack test --resolver lts-12.26"
  # OCCASIONAL!
  #  test/Spec.hs:240:
  #     expected: "[]"
  #      but got: "Bytes (PreAligned (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit FillerEnd))))))) [])"
  #   Custom Encoding "\v\SYN" [11, 22] Bytes (PreAligned (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit FillerEnd))))))) [11,
  #                                                                                                                22]):                                                                                                                                   FAIL (0.13s)
  #     test/Spec.hs:240:
  #     expected: "[11, 22]"
  #      but got: "Bytes (PreAligned (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit FillerEnd))))))) [11,\n                                                                                                                 22])"
  # ghc 8.6.4
  # - env: IMG=quid2/x64-ubuntu-stack-lts-13.22 CMD="stack test --resolver lts-13.22"
  # ghc 8.8.X

before_install:
  - docker pull $IMG

script:
  - PKG=zm
  - docker run -it $IMG bash -c "git clone https://github.com/Quid2/$PKG;cd $PKG;$CMD"
<commit_msg>get pkg name automatically<commit_after>sudo: required

language: c

services:
  - docker

matrix:
  include:
    ##- env: IMG=quid2/eta CMD="etlas update;etlas build;etlas test :spec"

    ##- env: IMG=quid2/x64-ubuntu-ghcjs CMD="stack test --stack-yaml stack-ghcjs.yaml"

    ##- env: IMG=quid2/x64-ubuntu-ghcjs-9.21 CMD="stack test --stack-yaml stack-ghcjs-9.21.yaml"

    ##- env: IMG=quid2/x32-ubuntu-cabal CMD="cabal v2-build --only-dependencies --enable-tests;cabal v2-build;cabal v2-test"
    # MANY failures

    # ghc 7.10.3
    # - env: IMG=quid2/x64-ubuntu-stack-lts-6.35 CMD="stack test --resolver lts-6.35"

    # ghc 8.0.2
    # - env: IMG=quid2/x64-ubuntu-stack-lts-9.21 CMD="stack test --resolver lts-9.21"

    # ghc 8.2.2
    - env: IMG=quid2/x64-ubuntu-stack-lts-11.22 CMD="stack test --resolver lts-11.22"
    # ghc 8.4.4
    - env: IMG=quid2/x64-ubuntu-stack-lts-12.26 CMD="stack test --resolver lts-12.26"
  # OCCASIONAL!
  #  test/Spec.hs:240:
  #     expected: "[]"
  #      but got: "Bytes (PreAligned (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit FillerEnd))))))) [])"
  #   Custom Encoding "\v\SYN" [11, 22] Bytes (PreAligned (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit FillerEnd))))))) [11,
  #                                                                                                                22]):                                                                                                                                   FAIL (0.13s)
  #     test/Spec.hs:240:
  #     expected: "[11, 22]"
  #      but got: "Bytes (PreAligned (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit (FillerBit FillerEnd))))))) [11,\n                                                                                                                 22])"
  # ghc 8.6.4
  # - env: IMG=quid2/x64-ubuntu-stack-lts-13.22 CMD="stack test --resolver lts-13.22"
  # ghc 8.8.X

before_install:
  - docker pull $IMG

script:
  - PKG=basename "$PWD"
  - echo $PKG
  - echo ${PWD##*/}
  - docker run -it $IMG bash -c "git clone https://github.com/Quid2/$PKG;cd $PKG;$CMD"

{'fraction_non_alphanumeric': 0.1468384074941452, 'fraction_numerical': 0.053395784543325525, 'mean_word_length': 1.7100253807106598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7164508', 'n_tokens_mistral': 1713, 'n_tokens_neox': 1531, 'n_words': 302}