<commit_before>os:
    - linux
language: python
python:
    - "2.7"
    - "3.4"
install:
    - pip install msgpack-python tornado requests cryptography psycopg2 coverage coveralls pyOpenSSL
    - echo $TRAVIS_PYTHON_VERSION
    - docker build -t vertexproject/synapse -f synapse/docker/synapse_dockerfile . \
    - docker build -t vertexproject/cortex_ram -f synapse/docker/cortex/ram_dockerfile . \
    - docker build -t vertexproject/cortex_sqlite -f synapse/docker/cortex/sqlite_dockerfile . \
    - docker build -t vertexproject/cortex_pg -f synapse/docker/cortex/postgres_9.5_dockerfile . \
    - docker run -d -p 127.0.0.1:47320:47322 --name cortex_ram vertexproject/cortex_ram \
    - docker run -d -p 127.0.0.1:47321:47322 --name cortex_sqlite vertexproject/cortex_sqlite \
    - docker run -d -p 127.0.0.1:47322:47322 --name cortex_pg vertexproject/cortex_pg
script: nosetests --verbosity=3 -x --with-coverage --cover-package=synapse
services: 
    - postgresql
    - docker
before_script:
    - psql -c 'create database syn_test;' -U postgres
    - echo $TRAVIS_PYTHON_VERSION
    - docker ps | grep -q cortex_ram \
    - docker ps | grep -q cortex_sqlite \
    - docker ps | grep -q cortex_pg \
    - docker ps -a \
    - nc -v -w 4 127.0.0.1 47320 \
    - nc -v -w 4 127.0.0.1 47321 \
    - nc -v -w 8 127.0.0.1 47322
env:
    - SYN_COR_PG_DB=syn_test
    - SYN_DOCKER=1

after_success:
    - coveralls<commit_msg>another attempt to conditionally build the docker images only when needed<commit_after>os:
    - linux
language: python
python:
    - "2.7"
    - "3.4"
install:
    - pip install msgpack-python tornado requests cryptography psycopg2 coverage coveralls pyOpenSSL
    - echo $TRAVIS_PYTHON_VERSION
    - echo $SYN_DOCKER
    - test $SYN_DOCKER = 1 \
        && docker build -t vertexproject/synapse -f synapse/docker/synapse_dockerfile . \
        && docker build -t vertexproject/cortex_ram -f synapse/docker/cortex/ram_dockerfile . \
        && docker run -d -p 127.0.0.1:47320:47322 --name cortex_ram vertexproject/cortex_ram 
script: nosetests --verbosity=3 -x --with-coverage --cover-package=synapse
services: 
    - postgresql
    - docker
before_script:
    - psql -c 'create database syn_test;' -U postgres
    - echo $TRAVIS_PYTHON_VERSION
    - echo $SYN_DOCKER
    - test $SYN_DOCKER = 1 \
        && docker ps | grep -q cortex_ram \
        && docker ps -a \
        && nc -v -w 4 127.0.0.1 47320
env:
    - SYN_COR_PG_DB=syn_test
    - SYN_DOCKER=1
matrix:
  exclude:
  - python: "2.7"
    env: SYN_DOCKER=1
after_success:
    - coveralls
{'fraction_non_alphanumeric': 0.10718446601941747, 'fraction_numerical': 0.051650485436893205, 'mean_word_length': 2.5433287482806053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '6143956', 'n_tokens_mistral': 1077, 'n_tokens_neox': 942, 'n_words': 231}