<commit_before>language: c

os:
  - linux
  - osx

sudo: required
dist: trusty

env:
  global:
    - PYTHONPATH="$PYTHONPATH:$TRAVIS_BUILD_DIR/clowder:$TRAVIS_BUILD_DIR/clowder_test:$TRAVIS_BUILD_DIR/test"
  matrix:
    - TARGET="cats" PYVERSION="python3"

matrix:
  include:
  - os: linux
    env: TARGET="cats" PYVERSION="python2"
  - os: linux
    env: TARGET="cocos2d" PYVERSION="python3"
  - os: linux
    env: TARGET="llvm" PYVERSION="python3"
  - os: linux
    env: TARGET="parallel" PYVERSION="python2"
  - os: linux
    env: TARGET="parallel" PYVERSION="python3"
  - os: linux
    env: TARGET="swift" PYVERSION="python3"

before_install: script/bootstrap "$PYVERSION"

install:
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install github-release; fi
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo -H pip3 install twine wheel; fi
    - sudo pip install awscli

before_script:
    - script/setup "$PYVERSION"
    - script/test

script:
    - if [ "$TARGET" = "cats" ]; then clowder-test -c cats all; fi
    - if [ "$TARGET" = "cocos2d" ]; then clowder-test -c cocos2d all; fi
    - if [ "$TARGET" = "llvm" ]; then clowder-test -c llvm all; fi
    - if [ "$TARGET" = "parallel" ]; then clowder-test -c parallel; fi
    - if [ "$TARGET" = "swift" ]; then clowder-test -c swift all; fi

after_script:
  - coverage combine examples/cats
  - coverage xml
  - ./cc-test-reporter format-coverage --output "coverage/codeclimate.$TRAVIS_JOB_NUMBER.json"<commit_msg>Combine coverage tests from all example dirs<commit_after>language: c

os:
  - linux
  - osx

sudo: required
dist: trusty

env:
  global:
    - PYTHONPATH="$PYTHONPATH:$TRAVIS_BUILD_DIR/clowder:$TRAVIS_BUILD_DIR/clowder_test:$TRAVIS_BUILD_DIR/test"
  matrix:
    - TARGET="cats" PYVERSION="python3"

matrix:
  include:
  - os: linux
    env: TARGET="cats" PYVERSION="python2"
  - os: linux
    env: TARGET="cocos2d" PYVERSION="python3"
  - os: linux
    env: TARGET="llvm" PYVERSION="python3"
  - os: linux
    env: TARGET="parallel" PYVERSION="python2"
  - os: linux
    env: TARGET="parallel" PYVERSION="python3"
  - os: linux
    env: TARGET="swift" PYVERSION="python3"

before_install: script/bootstrap "$PYVERSION"

install:
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install github-release; fi
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo -H pip3 install twine wheel; fi
    - sudo pip install awscli

before_script:
    - script/setup "$PYVERSION"
    - script/test

script:
    - if [ "$TARGET" = "cats" ]; then clowder-test -c cats all; fi
    - if [ "$TARGET" = "cocos2d" ]; then clowder-test -c cocos2d all; fi
    - if [ "$TARGET" = "llvm" ]; then clowder-test -c llvm all; fi
    - if [ "$TARGET" = "parallel" ]; then clowder-test -c parallel; fi
    - if [ "$TARGET" = "swift" ]; then clowder-test -c swift all; fi

after_script:
  - coverage combine examples/cats examples/cocos2d-objc examples/llvm-projects examples/swift-projects
  - coverage xml
  - ./cc-test-reporter format-coverage --output "coverage/codeclimate.$TRAVIS_JOB_NUMBER.json"
{'fraction_non_alphanumeric': 0.14135437212360288, 'fraction_numerical': 0.007560815253122946, 'mean_word_length': 3.4101449275362317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '557022', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1129, 'n_words': 274}