<commit_before>sudo: false
language: python
cache:
  pip: true
  directories:
  - "./env/"
  - "./gaenv/"

env:
- GAE_ZIP=google_appengine_1.9.36.zip

matrix:
  include:
  - os: linux
    python: 2.7
  - os: osx
    language: generic
    osx_image: xcode6.4

# https://github.com/travis-ci/travis-ci/issues/738#issuecomment-11179888
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]];
  then brew unlink python;
  brew install python;
  which pip2
  which pip
  pip install virtualenv;
  fi
- pip install -U pip
- pip install -r requirements-dev.txt
- pip install coveralls
- wget -nv https://storage.googleapis.com/appengine-sdks/featured/${GAE_ZIP}
- unzip -q ${GAE_ZIP} -d ${HOME}

script:
- make test-ci

after_success:
- coveralls

before_deploy:
- make release-ci
- FILENAME_CI=dist/Grow-SDK-${TRAVIS_OS_NAME/linux/Linux}-${TRAVIS_TAG}.zip
- FILENAME_CI=${FILENAME_CI/osx/Mac}

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  draft: true
  file: ${FILENAME_CI}
  on:
    tags: true
  skip_cleanup: true

notifications:
  slack:<commit_msg>Attempting to output which pip and alias if needed.<commit_after>sudo: false
language: python
cache:
  pip: true
  directories:
  - "./env/"
  - "./gaenv/"

env:
- GAE_ZIP=google_appengine_1.9.36.zip

matrix:
  include:
  - os: linux
    python: 2.7
  - os: osx
    language: generic
    osx_image: xcode6.4

# https://github.com/travis-ci/travis-ci/issues/738#issuecomment-11179888
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]];
  then brew unlink python;
  brew install python;
  which pip2;
  alias pip=/usr/local/bin/pip2;
  pip install virtualenv;
  fi
- pip install -U pip
- pip install -r requirements-dev.txt
- pip install coveralls
- wget -nv https://storage.googleapis.com/appengine-sdks/featured/${GAE_ZIP}
- unzip -q ${GAE_ZIP} -d ${HOME}

script:
- make test-ci

after_success:
- coveralls

before_deploy:
- make release-ci
- FILENAME_CI=dist/Grow-SDK-${TRAVIS_OS_NAME/linux/Linux}-${TRAVIS_TAG}.zip
- FILENAME_CI=${FILENAME_CI/osx/Mac}

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  draft: true
  file: ${FILENAME_CI}
  on:
    tags: true
  skip_cleanup: true

notifications:
  slack:
{'fraction_non_alphanumeric': 0.1349862258953168, 'fraction_numerical': 0.018824609733700644, 'mean_word_length': 3.4109311740890687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '3889435', 'n_tokens_mistral': 898, 'n_tokens_neox': 858, 'n_words': 187}