SHARE
TWEET

Untitled

a guest Sep 16th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integration-tests:
  2.   stage: test
  3.   before_script:
  4.     # Load php image from the build stage
  5.     - docker load -i build/symfony-dummy-project-php-fpm/test.tar
  6.     - docker load -i build/symfony-dummy-project-mysql/prod.tar
  7.     # Start mysql
  8.     - source .env
  9.     - docker network create symfony-dummy-project-net
  10.     - docker run --rm -d --network symfony-dummy-project-net --network-alias mysql -e MYSQL_DATABASE=$MYSQL_DATABASE -e MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD symfony-dummy-project-mysql:prod
  11.   script:
  12.     - docker run --rm --network symfony-dummy-project-net symfony-dummy-project-php-fpm:test sh -c "sh ci/check-connection mysql 3306 && bin/phpunit --testsuit integration --testdox"
  13.   dependencies:
  14.     - build-php-fpm-test
  15.     - build-mysql-prod
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top