<commit_before>services:
  - docker

git:
  lfs_skip_smudge: true

language: python

branches:
  only:
    - master
    # build release tags
    - /^v\d+\.\d+(\.\d+)?(-\S*)?$/

before_install:
  - docker pull veros/ubuntu:18.04

install:
  - docker build -t veros -f testing.dockerfile .

env:
  global:
    - PYTHON_EXEC=python3
    - PYOM2_LIB=/usr/local/lib/pyOM_code_py3.so
    - OMP_NUM_THREADS=2
    - OMPI_MCA_mpi_yield_when_idle=1
  matrix:
    - VEROS_BACKEND=numpy PYTHON_EXEC=$PYTHON_EXEC PYOM2_LIB=$PYOM2_LIB
    - VEROS_BACKEND=bohrium BH_STACK=openmp PYTHON_EXEC=$PYTHON_EXEC PYOM2_LIB=$PYOM2_LIB

script:
  - docker run -e BH_STACK -t veros $PYTHON_EXEC -m bohrium_api --info
  - "docker run \
      -e CODECOV_TOKEN \
      -e VEROS_BACKEND \
      -e BH_STACK \
      -e OMP_NUM_THREADS \
      -e OMPI_MCA_mpi_yield_when_idle \
      -t veros \
      /bin/bash -c \"\
          $PYTHON_EXEC -m pytest . -v --cov --pyom2-lib $PYOM2_LIB --backend $VEROS_BACKEND && codecov \
      \"\
    "
  - pip install . && cd doc && pip install -r requirements.txt && make html  # build docs

deploy:
  provider: pypi
  user: "__token__"
  password:
    secure: "<KEY>
  on:
    tags: true
  skip_existing: true

notifications:
  email: false<commit_msg>[travis] don't cd to doc dir<commit_after>services:
  - docker

git:
  lfs_skip_smudge: true

language: python

branches:
  only:
    - master
    # build release tags
    - /^v\d+\.\d+(\.\d+)?(-\S*)?$/

before_install:
  - docker pull veros/ubuntu:18.04

install:
  - docker build -t veros -f testing.dockerfile .

env:
  global:
    - PYTHON_EXEC=python3
    - PYOM2_LIB=/usr/local/lib/pyOM_code_py3.so
    - OMP_NUM_THREADS=2
    - OMPI_MCA_mpi_yield_when_idle=1
  matrix:
    - VEROS_BACKEND=numpy PYTHON_EXEC=$PYTHON_EXEC PYOM2_LIB=$PYOM2_LIB
    - VEROS_BACKEND=bohrium BH_STACK=openmp PYTHON_EXEC=$PYTHON_EXEC PYOM2_LIB=$PYOM2_LIB

script:
  - docker run -e BH_STACK -t veros $PYTHON_EXEC -m bohrium_api --info
  - "docker run \
      -e CODECOV_TOKEN \
      -e VEROS_BACKEND \
      -e BH_STACK \
      -e OMP_NUM_THREADS \
      -e OMPI_MCA_mpi_yield_when_idle \
      -t veros \
      /bin/bash -c \"\
          $PYTHON_EXEC -m pytest . -v --cov --pyom2-lib $PYOM2_LIB --backend $VEROS_BACKEND && codecov \
      \"\
    "
  - pip install . && pip install -r doc/requirements.txt && make -I doc html  # build docs

deploy:
  provider: pypi
  user: "__token__"
  password:
    secure: "<KEY>
  on:
    tags: true
  skip_existing: true

notifications:
  email: false
{'fraction_non_alphanumeric': 0.12036306235201263, 'fraction_numerical': 0.011838989739542225, 'mean_word_length': 2.4869325997248968, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2671879', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1056, 'n_words': 212}