switch composer.json to syfmony3

This commit is contained in:
Julien Fastré 2018-04-24 14:49:52 +02:00
parent 04b8682fed
commit d78eb72777
2 changed files with 5 additions and 23 deletions

View File

@ -16,21 +16,15 @@ stages:
- build-doc - build-doc
- deploy-doc - deploy-doc
test:php-7.1: test:php-7.2:
stage: test stage: test
image: chill/ci-image:php-7.1 image: chill/ci-image:php-7.2
<<: *test_definition <<: *test_definition
script: php vendor/bin/phpunit script: php vendor/bin/phpunit
test:php-7:
stage: test
image: chill/ci-image:php-7
<<: *test_definition
script: php vendor/bin/phpunit
deploy-packagist: deploy-packagist:
stage: deploy stage: deploy
image: chill/ci-image:php-7 image: chill/ci-image:php-7.2
before_script: before_script:
# test that PACKAGIST USERNAME and PACKAGIST_TOKEN variable are set # test that PACKAGIST USERNAME and PACKAGIST_TOKEN variable are set
- if [ -z ${PACKAGIST_USERNAME+x} ]; then echo "Please set PACKAGIST_USERNAME variable"; exit -1; fi - if [ -z ${PACKAGIST_USERNAME+x} ]; then echo "Please set PACKAGIST_USERNAME variable"; exit -1; fi
@ -43,7 +37,7 @@ deploy-packagist:
api-doc-build: api-doc-build:
stage: build-doc stage: build-doc
environment: api-doc environment: api-doc
image: chill/ci-image:php-7 image: chill/ci-image:php-7.2
before_script: before_script:
- mkdir api-doc - mkdir api-doc
script: apigen generate --destination api-doc/$CI_BUILD_REF_NAME/$CI_PROJECT_NAME script: apigen generate --destination api-doc/$CI_BUILD_REF_NAME/$CI_PROJECT_NAME

View File

@ -19,21 +19,9 @@
} }
], ],
"require": { "require": {
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/framework-bundle": "~2.7",
"symfony/yaml": "~2.7",
"symfony/symfony": "~2.7",
"doctrine/dbal": "~2.5",
"doctrine/orm": "~2.4",
"doctrine/common": "~2.4",
"doctrine/doctrine-bundle": "~1.2",
"chill-project/main": "dev-upgrade-sf3@dev", "chill-project/main": "dev-upgrade-sf3@dev",
"chill-project/custom-fields": "dev-upgrade-sf3@dev", "chill-project/custom-fields": "dev-upgrade-sf3@dev",
"chill-project/person": "dev-upgrade-sf3@dev", "chill-project/person": "dev-upgrade-sf3@dev"
"champs-libres/composer-bundle-migration": "~1.0",
"doctrine/doctrine-migrations-bundle": "~1.1",
"doctrine/migrations": "~1.0"
}, },
"require-dev": { "require-dev": {
"doctrine/doctrine-fixtures-bundle": "~2.2", "doctrine/doctrine-fixtures-bundle": "~2.2",