<commit_before>language: bash
services: docker

#install:
#  - git clone -v https://github.com/vertexproject/synapse.git /tmp/synapse

script:
  - docker build -f ./python36/Dockerfile ./python36 | tee build_log.txt
  - export IMAGE_ID=`grep "Successfully built" build_log.txt | grep -v "msgpack" | cut -f 3 -d " "`
  - docker run $IMAGE_ID python -c "import msgpack; print(msgpack)"
  - docker run $IMAGE_ID python -c "import tornado; print(tornado)"
  - docker run $IMAGE_ID python -c "import psycopg2; print(psycopg2)"
  - docker run $IMAGE_ID python -c "import cryptography; print(cryptography)"
  - python test/rewrite_dockerfile.py
  - docker build -f test/Dockerfile ./test | tee test_build_log.txt
  - export TEST_IMAGE_ID=`grep "Successfully built" build_log.txt | grep -v "msgpack" | cut -f 3 -d " "`
  - docker run $TEST_IMAGE_ID<commit_msg>Ensure that we capture stderr to stdout during travis.<commit_after>language: bash
services: docker

#install:
#  - git clone -v https://github.com/vertexproject/synapse.git /tmp/synapse

script:
  - docker build -f ./python36/Dockerfile ./python36 | tee build_log.txt
  - export IMAGE_ID=`grep "Successfully built" build_log.txt | grep -v "msgpack" | cut -f 3 -d " "`
  - docker run $IMAGE_ID python -c "import msgpack; print(msgpack)"
  - docker run $IMAGE_ID python -c "import tornado; print(tornado)"
  - docker run $IMAGE_ID python -c "import psycopg2; print(psycopg2)"
  - docker run $IMAGE_ID python -c "import cryptography; print(cryptography)"
  - python test/rewrite_dockerfile.py
  - docker build -f test/Dockerfile ./test | tee test_build_log.txt
  - export TEST_IMAGE_ID=`grep "Successfully built" build_log.txt | grep -v "msgpack" | cut -f 3 -d " "`
  - docker run --rm $TEST_IMAGE_ID 2>&1
{'fraction_non_alphanumeric': 0.1225071225071225, 'fraction_numerical': 0.010256410256410256, 'mean_word_length': 3.797814207650273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '1615274', 'n_tokens_mistral': 647, 'n_tokens_neox': 598, 'n_words': 181}