anchor.diff:      RSPEC_JUNIT_ARGS="-r rspec_junit_formatter --format RspecJunitFormatter -o $HOME/.rspec_reports/junit.xml"
       RSPEC_FORMAT_ARGS="--format progress --no-color"
     }
  -  docker-compose $DOCKER_COMPOSE_ARGS run test bundle exec rspec spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
  +  docker-compose $DOCKER_COMPOSE_ARGS run --rm test bundle exec rspec spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
   }
   
   # Run the complete ci build
  
positive.code: 
  # Prepare dependencies
  dependencies(){
    docker-compose $DOCKER_COMPOSE_ARGS run test bundle install
  }
  
  assets() {
    docker-compose $DOCKER_COMPOSE_ARGS run test /bin/bash -c "bin/setup && bundle exec rake assets:precompile"
  }
  
  # Prepare database
  database(){
    docker-compose $DOCKER_COMPOSE_ARGS run test bundle exec rake db:create db:schema:load
  }
  
  # Run the specs
  
negative.code: # Wait services to be ready
  wait_services(){
    function test_service {
      docker-compose $DOCKER_COMPOSE_ARGS run --rm test sh -c "nc -z $1 $2"
    }
  
    count=0
  