title: Running tests in a container on Travis
body: <p>While building my application on Travis I am trying to run the tests within a Docker container. The container starts and the tests are run, and when I log the container output I can see they have passed. It is my understanding I can use grep for this as seen below. So this is my travis script:</p>
  
  <p>script:</p>
  
  <ul>
  <li><p>docker-compose up -d</p></li>
  <li><p>docker logs dockertestapp_app_1 </p></li>
  <li><p>docker logs 2>&amp;1 dockertestapp_app_1 | grep -q 'npm info ok'</p></li>
  </ul>
  
  <p>I just want to grep the output of the container logs to see whether or not the tests pass but it always fails. Am I missing something simple?</p>
  
  <p>Thank you in advance!</p>