Skip to content

Instantly share code, notes, and snippets.

@ramayac
Created June 16, 2016 14:14
Show Gist options
  • Save ramayac/676a21ff29cc727f20fe1506c3ce5b10 to your computer and use it in GitHub Desktop.
Save ramayac/676a21ff29cc727f20fe1506c3ce5b10 to your computer and use it in GitHub Desktop.
gitlab-ci.yml for Symfony, Test
cache:
key: "$CI_BUILD_REF"
paths:
- app/bootstrap.php.cache
- bin/
- vendor/
- var/cache/
- var/logs/
- web/bundles/
before_script:
- clear
stages:
- build
- test
composerupdate:
stage: build
script:
#- "echo build_stage: $CI_BUILD_ID >> build"
- ls
- composer update
consoleclearcache:
dependencies:
- composerupdate
stage: test
script:
#- "echo build_stage: $CI_BUILD_ID >> build"
- pwd
- ls
- php app/console cache:clear --env=prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment