-
jurgenhaas authoredjurgenhaas authored
test-and-deploy.yml 11.96 KiB
variables:
PHP_MAJOR_VERSION: 7
PHP_MINOR_VERSION: 4
stages:
- validation
- buildprod
- build
- prepare
- test
- deploy
.wait:
script:
- while [ ! -f /tmp/foo.txt ]; do echo "waiting..."; sleep 1; done
.cache_paths: &cache_paths
paths:
- .docker-init/
- assets/
- config/
- drush/
- files/
- settings/
- vendor/
- web/core/
- web/libraries/
- web/modules/contrib/
- web/profiles/contrib/
- web/sites/
- web/themes/contrib/
- .ahoy.yml
- .env
- docker-compose.yml
.artifact_paths_prod: &artifact_paths_prod
paths:
- config/
- drush/
- vendor/
- web/
- composer.json
- composer.lock
.artifact_paths: &artifact_paths
paths:
- .docker-init/
- assets/
- config/
- drush/
- files/
- settings/
- tests/
- vendor/
- web/
- .ahoy.yml
- .env
- composer.*
- docker-compose.yml
.cache_default: &cache_default
key: build-${COMPOSE_PROJECT_NAME}
<<: *cache_paths
.cache_prod: &cache_prod
key: build-prod-${COMPOSE_PROJECT_NAME}
<<: *cache_paths
.prerequisites:
stage: validation