Advertisement
Guest User

Untitled

a guest
Jan 27th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.79 KB | None | 0 0
  1. image: php:7.0-fpm
  2.  
  3. before_script:
  4.  - export DATABASE_NAME=symfony
  5.   - export DATABASE_USER=symfony
  6.   - export DATABASE_PASSWORD=symfony
  7.   - bash ci/install.sh > /dev/null
  8. services:
  9.  - mysql:latest
  10.  
  11. variables:
  12.  # Configure mysql service (https://hub.docker.com/_/mysql/)
  13.   MYSQL_DATABASE: symfony
  14.   MYSQL_ROOT_PASSWORD: symfony
  15.  
  16. build:
  17.   script:
  18.    - composer install --no-interaction
  19.     - php bin/console doctrine:schema:update --force
  20.     - php bin/console doctrine:migrations:migrate --no-interaction
  21.     - cd ./web
  22.     - npm install
  23.     - cd ..
  24.     - rm -rf ./var/*
  25.     - php bin/console cache:clear --no-warmup
  26.     - php bin/console cache:clear --no-warmup --env=prod
  27.     - php bin/console cache:warmup
  28.     - php bin/console cache:warmup --env=prod
  29.     - chmod 777 -R ./var
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement