<commit_before>stages: [test, dist]

before_script:
    - export MAKEFLAGS="-j$(mk/nproc.sh)" V=1 VERBOSE=1

test:debian:
    stage: test
    image: registry.gitlab.com/craigbarnes/dockerfiles/lua-testing
    script:
        - make vars
        - export LUA_VERSIONS='5.3 5.2 5.1'
        - make build-all
        - make check-all check-luajit

        - make clean-obj
        - luarocks --lua-version=5.3 --tree=/usr make gumbo-scm-1.rockspec
        - lua5.3 -e 'require "gumbo"'
        - make clean-obj
        - luarocks --lua-version=5.2 --tree=/usr make gumbo-scm-1.rockspec
        - lua5.2 -e 'require "gumbo"'
        - make clean-obj
        - luarocks --lua-version=5.1 --tree=/usr make gumbo-scm-1.rockspec
        - lua5.1 -e 'require "gumbo"'

        - make clean-obj
        - make benchmark CFLAGS='-O3 -DNDEBUG'

test:alpine:
    stage: test
    image: registry.gitlab.com/craigbarnes/dockerfiles/cdev-alpine
    script: &SCRIPT
        - make vars
        - export LUA_VERSIONS='5.3 5.2 5.1'
        - make build-all
        - make check-all
        - make benchmark CFLAGS='-O3 -DNDEBUG'

.pages:
    image: registry.gitlab.com/craigbarnes/dockerfiles/cdev-debian-10
    coverage: '/^ *lines\.*: *(\d+\.\d+\%) .*$/'
    artifacts:
        paths: [public]
        expire_in: 60 days
    script:
        - git fetch --tags
        - make docs doxygen dist
        - make check-dist
        - luarocks install lmd5
        - make coverage-report

pages:
    extends: .pages
    stage: dist<commit_msg>Remove redundant command from .gitlab-ci.yml<commit_after>stages: [test, dist]

before_script:
    - export MAKEFLAGS="-j$(mk/nproc.sh)" V=1 VERBOSE=1

test:debian:
    stage: test
    image: registry.gitlab.com/craigbarnes/dockerfiles/lua-testing
    script:
        - make vars
        - export LUA_VERSIONS='5.3 5.2 5.1'
        - make build-all
        - make check-all check-luajit

        - make clean-obj
        - luarocks --lua-version=5.3 --tree=/usr make gumbo-scm-1.rockspec
        - lua5.3 -e 'require "gumbo"'
        - make clean-obj
        - luarocks --lua-version=5.2 --tree=/usr make gumbo-scm-1.rockspec
        - lua5.2 -e 'require "gumbo"'
        - make clean-obj
        - luarocks --lua-version=5.1 --tree=/usr make gumbo-scm-1.rockspec
        - lua5.1 -e 'require "gumbo"'

        - make clean-obj
        - make benchmark CFLAGS='-O3 -DNDEBUG'

test:alpine:
    stage: test
    image: registry.gitlab.com/craigbarnes/dockerfiles/cdev-alpine
    script: &SCRIPT
        - make vars
        - export LUA_VERSIONS='5.3 5.2 5.1'
        - make build-all
        - make check-all
        - make benchmark CFLAGS='-O3 -DNDEBUG'

.pages:
    image: registry.gitlab.com/craigbarnes/dockerfiles/cdev-debian-10
    coverage: '/^ *lines\.*: *(\d+\.\d+\%) .*$/'
    artifacts:
        paths: [public]
        expire_in: 60 days
    script:
        - git fetch --tags
        - make docs doxygen dist
        - make check-dist
        - make coverage-report

pages:
    extends: .pages
    stage: dist
{'fraction_non_alphanumeric': 0.13359657782165185, 'fraction_numerical': 0.023362948338269168, 'mean_word_length': 1.838468720821662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '710449', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1078, 'n_words': 234}