Skip to content
Snippets Groups Projects

Upgrade to PHP 7.3

Merged Guy Thouret requested to merge chore/665-refactor-object-use into master
Compare and Show latest version
1 file
+ 21
10
Compare changes
  • Side-by-side
  • Inline
+ 21
10
image: minds/php:7.3
services:
- docker:dind
stages:
- build
- test
@@ -13,38 +10,38 @@ stages:
- deploy:canary
- deploy:production
cache:
paths:
- vendor
- bin
policy: pull
build:
stage: build
script:
- apk add --no-cache git
- sh tools/setup.sh production
cache:
key: "$CI_COMMIT_REF_NAME}-$CI_COMMIT_SHORT_SHA}"
paths:
- vendor
- bin
policy: push
test:
stage: test
image: minds/php:7.3
script:
- php -n -c Spec/php-test.ini bin/phpspec run
cache:
key: "$CI_COMMIT_REF_NAME}-$CI_COMMIT_SHORT_SHA}"
lint:
stage: test
image: minds/php:7.3
script:
- bin/php-cs-fixer fix --allow-risky=yes --verbose --dry-run
cache:
key: "$CI_COMMIT_REF_NAME}-$CI_COMMIT_SHORT_SHA}"
prepare:fpm:
stage: prepare
image: minds/ci:latest
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
- |
@@ -55,10 +52,14 @@ prepare:fpm:
--build-arg SENTRY_DSN=$SENTRY_DSN \
.
- docker push $CI_REGISTRY_IMAGE/fpm:$CI_PIPELINE_ID
cache:
key: "$CI_COMMIT_REF_NAME}-$CI_COMMIT_SHORT_SHA}"
prepare:runners:
stage: prepare
image: minds/ci:latest
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
- |
@@ -69,6 +70,8 @@ prepare:runners:
--build-arg SENTRY_DSN=$SENTRY_DSN \
.
- docker push $CI_REGISTRY_IMAGE/runners:$CI_PIPELINE_ID
cache:
key: "$CI_COMMIT_REF_NAME}-$CI_COMMIT_SHORT_SHA}"
prepare:all:sentry:
stage: prepare
@@ -142,6 +145,8 @@ qa:manual:
staging:fpm:
stage: deploy:staging
image: minds/ci:latest
services:
- docker:dind
script:
- IMAGE_LABEL="staging"
- $(aws ecr get-login --no-include-email --region us-east-1)
@@ -168,6 +173,8 @@ staging:fpm:
canary:fpm:
stage: deploy:canary
image: minds/ci:latest
services:
- docker:dind
script:
- IMAGE_LABEL="canary"
- $(aws ecr get-login --no-include-email --region us-east-1)
@@ -196,6 +203,8 @@ canary:fpm:
production:fpm:
stage: deploy:production
image: minds/ci:latest
services:
- docker:dind
script:
- IMAGE_LABEL="production"
- $(aws ecr get-login --no-include-email --region us-east-1)
@@ -224,6 +233,8 @@ production:fpm:
production:runners:
stage: deploy:production
image: minds/ci:latest
services:
- docker:dind
script:
- IMAGE_LABEL="production"
- $(aws ecr get-login --no-include-email --region us-east-1)
Loading