<commit_before># Build and Test Tethys Platform on Travis
language: c

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false

# Turn off email notifications
notifications:
  email: false

os:
  - linux

env:
  - CONDA_BUILD_PIN_LEVEL=minor

services:
  - docker

stages:
  - name: test
  - name: conda-build
    if: (branch = master) OR (branch = release) OR (tag IS present)
  - name: docker-build
    if: (branch = master) OR (branch = release) OR (tag IS present)

install:
  - cd ..
  - bash ./tethys/scripts/install_tethys.sh -h
  - bash ./tethys/scripts/install_tethys.sh --partial-tethys-install meds -n tethys -s $PWD/tethys

  # activate conda environment
  - . ~/miniconda/etc/profile.d/conda.sh
  - conda activate tethys
  - conda list
  - tethys db start
  # install test dependencies
  - pip install coveralls
  - cd $TRAVIS_BUILD_DIR

script:
  # command to run tests
  - tethys test -c -u -v 2

after_success:
  - >
    if [ "$TRAVIS_OS_NAME" == "linux" ]; then
      # generate test coverage information
      coveralls
    fi

jobs:
  include:
    - stage: docker-build
      install:
        - skip<commit_msg>Add new "unit-test" stage in attempt to get test running again.<commit_after># Build and Test Tethys Platform on Travis
language: c

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false

# Turn off email notifications
notifications:
  email: false

os:
  - linux

env:
  - CONDA_BUILD_PIN_LEVEL=minor

services:
  - docker

stages:
  - name: test
    if: (tag IS NOT present)
  - name: unit-test
    if: (tag IS NOT present)
  - name: conda-build
    if: (branch = master) OR (branch = release) OR (tag IS present)
  - name: docker-build
    if: (branch = master) OR (branch = release) OR (tag IS present)

install:
  - cd ..
  - bash ./tethys/scripts/install_tethys.sh -h
  - bash ./tethys/scripts/install_tethys.sh --partial-tethys-install meds -n tethys -s $PWD/tethys

  # activate conda environment
  - . ~/miniconda/etc/profile.d/conda.sh
  - conda activate tethys
  - conda list
  - tethys db start
  # install test dependencies
  - pip install coveralls
  - cd $TRAVIS_BUILD_DIR

script:
  # command to run tests
  - tethys test -c -u -v 2

after_success:
  - >
    if [ "$TRAVIS_OS_NAME" == "linux" ]; then
      # generate test coverage information
      coveralls
    fi

jobs:
  include:
    - stage: unit-test
      install:
        - cd ..
        - bash ./tethys/scripts/install_tethys.sh -h
        - bash ./tethys/scripts/install_tethys.sh --partial-tethys-install meds -n tethys -s $PWD/tethys

        # activate conda environment
        - . ~/miniconda/etc/profile.d/conda.sh
        - conda activate tethys
        - conda list
        - tethys db start
        # install test dependencies
        - pip install coveralls
        - cd $TRAVIS_BUILD_DIR
      script:
        # command to run tests
        - tethys test -c -u -v 2
      after_success:
        - >
          if [ "$TRAVIS_OS_NAME" == "linux" ]; then
            # generate test coverage information
            coveralls
          fi
    - stage: docker-build
      install:
        - skip
{'fraction_non_alphanumeric': 0.0981012658227848, 'fraction_numerical': 0.0009493670886075949, 'mean_word_length': 2.2756476683937823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2034641', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1066, 'n_words': 324}