<commit_before>language: common-lisp
sudo: required

env:
  global:
    - PATH=~/.roswell/bin:$PATH
    - ROSWELL_BRANCH=release
    - ROSWELL_INSTALL_DIR=$HOME/.roswell
    - COVERAGE_EXCLUDE=tests
  matrix:
    - LISP=sbcl-bin COVERALLS=true

install:
  - curl -L https://raw.githubusercontent.com/snmsts/roswell/$ROSWELL_BRANCH/scripts/install-for-ci.sh | sh
  - ros asdf install
  - ros -e '(ql:update-all-dists :prompt nil)'

cache:
  directories:
    - $HOME/.roswell
    - $HOME/.config/common-lisp

script: ros -e '(coveralls:with-coveralls (:exclude (list "t"))
                  (ql:quickload :cl-yatlp-test)
                  (when (uiop:getenv "COVERALLS")
                    (ql:quickload (list :cl-coveralls :split-sequence) :silent t))
                  (when (lisp-unit2:failed (lisp-unit2:with-summary ()
                                             (lisp-unit2:run-tests :package :lexer-tests)))
                    (uiop:quit 1)))'<commit_msg>load cl-coveralls before<commit_after>language: common-lisp
sudo: required

env:
  global:
    - PATH=~/.roswell/bin:$PATH
    - ROSWELL_BRANCH=release
    - ROSWELL_INSTALL_DIR=$HOME/.roswell
    - COVERAGE_EXCLUDE=tests
  matrix:
    - LISP=sbcl-bin COVERALLS=true

install:
  - curl -L https://raw.githubusercontent.com/snmsts/roswell/$ROSWELL_BRANCH/scripts/install-for-ci.sh | sh
  - ros asdf install
  - ros -e '(ql:update-all-dists :prompt nil)'

cache:
  directories:
    - $HOME/.roswell
    - $HOME/.config/common-lisp

script: ros -e '(ql:quickload (list :cl-coveralls :split-sequence) :silent t)
                (coveralls:with-coveralls (:exclude (list "t"))
                  (ql:quickload :cl-yatlp-test)
                  (when (lisp-unit2:failed (lisp-unit2:with-summary ()
                                             (lisp-unit2:run-tests :package :lexer-tests)))
                    (uiop:quit 1)))'
{'fraction_non_alphanumeric': 0.1381509032943677, 'fraction_numerical': 0.004250797024442083, 'mean_word_length': 2.2409638554216866, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2034924', 'n_tokens_mistral': 699, 'n_tokens_neox': 663, 'n_words': 110}