<commit_before>sudo: required

deploy:
  provider: pypi
  user: jrxfive
  password:
    secure: <KEY>
  on:
    tags: true
    repo: jrxFive/python-nomad
    condition: $TRAVIS_PYTHON_VERSION = "2.7"

services:
- docker
language: python
python:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
env:
  global:
  - NOMAD_IP="127.0.0.1"
  - NOMAD_URI="http://127.0.0.1"
  - NOMAD_PORT="4646"
  matrix:
  - NOMAD_VERSION="0.3.2"
  - NOMAD_VERSION="0.4.1"
  - NOMAD_VERSION="0.5.6"
  - NOMAD_VERSION="0.6.0"
  - NOMAD_VERSION="0.7.0"
  - NOMAD_VERSION="0.7.1"
before_install:
- curl -L -o /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip
- yes | unzip -d /tmp /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip
- if [[ "$NOMAD_VERSION" == "0.7.0" || "$NOMAD_VERSION" == "0.7.1" ]]; then
    /tmp/nomad agent -dev -bind ${NOMAD_IP} -node pynomad1 --acl-enabled > /dev/null 2>&1 &;
  else
    /tmp/nomad agent -dev -bind ${NOMAD_IP} -node pynomad1 > /dev/null 2>&1 &;
  fi
- sleep 30
install:
- pip install -r requirements-dev.txt
- pip install codecov
before_script:
  - /tmp/nomad init
  - /tmp/nomad run -output example.nomad > example.json
script:
- py.test --cov=nomad --cov-report=term-missing --runxfail tests/
after_success:
- codecov<commit_msg>update start of nomad daemon<commit_after>sudo: required

deploy:
  provider: pypi
  user: jrxfive
  password:
    secure: <KEY>
  on:
    tags: true
    repo: jrxFive/python-nomad
    condition: $TRAVIS_PYTHON_VERSION = "2.7"

services:
- docker
language: python
python:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
env:
  global:
  - NOMAD_IP="127.0.0.1"
  - NOMAD_URI="http://127.0.0.1"
  - NOMAD_PORT="4646"
  matrix:
  - NOMAD_VERSION="0.3.2"
  - NOMAD_VERSION="0.4.1"
  - NOMAD_VERSION="0.5.6"
  - NOMAD_VERSION="0.6.0"
  - NOMAD_VERSION="0.7.0"
  - NOMAD_VERSION="0.7.1"
before_install:
- curl -L -o /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip
- yes | unzip -d /tmp /tmp/nomad_${NOMAD_VERSION}_linux_amd64.zip
- if [[ "$NOMAD_VERSION" == "0.7.0" || "$NOMAD_VERSION" == "0.7.1" ]]; then export ACL_ENABLED="--acl-enabled"; else export ACL_ENABLED="";fi
- /tmp/nomad agent -dev -bind ${NOMAD_IP} -node pynomad1 ${ACL_ENABLED} > /dev/null 2>&1 &
- sleep 30
install:
- pip install -r requirements-dev.txt
- pip install codecov
before_script:
  - /tmp/nomad init
  - /tmp/nomad run -output example.nomad > example.json
script:
- py.test --cov=nomad --cov-report=term-missing --runxfail tests/
after_success:
- codecov
{'fraction_non_alphanumeric': 0.17471264367816092, 'fraction_numerical': 0.04789272030651341, 'mean_word_length': 3.3228476821192054, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '556790', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1146, 'n_words': 203}