<commit_before>language: python


python:
    - "2.7"

sudo: required

services:
    - docker

notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: never # default: change
    on_failure: always # default: always

env:
  global:
    # TEST_USER
    - secure: "<KEY>
    # TEST_PASSWORD
    - secure: "<KEY>TEedMYMT5Q6J7v5DORDzpU5F8kklA0="

branches:
  only:
    - master
    - staging
    - develop

before_install:
    - docker version
    - python --version
    - javac -version
    - java -version

install:
    - git clone https://github.com/kbase/jars
    - git clone https://github.com/kbase/kb_sdk
    - cd kb_sdk
    - make
    - make sdkbase
    - docker images
    - export PATH=$(pwd)/bin:$PATH
    - cd ../
    - git clone https://github.com/sjyoo/coexpression
    - cd coexpression
    # add missing module dir (should be added to the project and then removed from here)
    - mkdir test
    # run the kb-sdk test command once to build missing module files and dirs
    - kb-sdk test -s
    # add test config
    - sed -i "s/test_user=/test_user=$TEST_USER/" test_local/test.cfg
    - sed -i "s/test_password=/test_password=$TEST_PASSWORD/" test_local/test.cfg
    - sed -i 's\https://appdev.kbase.us/services\https://ci.kbase.us/services\' test_local/test.cfg
    # temporary fix for host::container user mapping (until it is fixed in kb-sdk)
    - sed -i 's/$(id -u)/0:0/' test_local/run_tests.sh

script:
    - kb-sdk test -s<commit_msg>added coverage to travis.yml<commit_after>language: python


python:
    - "2.7"

sudo: required

services:
    - docker

notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: never # default: change
    on_failure: always # default: always

env:
  global:
    # TEST_USER
    - secure: "<KEY>
    # TEST_PASSWORD
    - secure: "<KEY>

branches:
  only:
    - master
    - staging
    - develop

before_install:
    - docker version
    - python --version
    - javac -version
    - java -version

install:
    - pip install python-coveralls
    - pip install coverage
    - git clone https://github.com/kbase/jars
    - git clone https://github.com/kbase/kb_sdk
    - cd kb_sdk
    - make
    - make sdkbase
    - docker images
    - export PATH=$(pwd)/bin:$PATH
    - cd ../
    - git clone https://github.com/sjyoo/coexpression
    - cd coexpression
    # add missing module dir (should be added to the project and then removed from here)
    - mkdir test
    # run the kb-sdk test command once to build missing module files and dirs
    - kb-sdk test -s
    # add test config
    - sed -i "s/test_user=/test_user=$TEST_USER/" test_local/test.cfg
    - sed -i "s/test_password=/test_password=$TEST_PASSWORD/" test_local/test.cfg
    - sed -i 's\https://appdev.kbase.us/services\https://ci.kbase.us/services\' test_local/test.cfg
    # temporary fix for host::container user mapping (until it is fixed in kb-sdk)
    - sed -i 's/$(id -u)/0:0/' test_local/run_tests.sh

script:
    - kb-sdk test -s
    
after_success:
    - coveralls

{'fraction_non_alphanumeric': 0.11500330469266358, 'fraction_numerical': 0.00495703899537343, 'mean_word_length': 2.3410596026490067, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 10, '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': '7335469', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1028, 'n_words': 276}