chill-bundles/.gitlab-ci.yml
Julien Fastré 7a73c0170c set a composer root version + select image php-7
The composer root version is required to let composer decide on which branch he is, as we have mirrored dependencies (custom field requires person, which requires custom field).

The php 7 build select now php 7 image
2015-12-24 15:16:04 +01:00

20 lines
728 B
YAML

services:
- chill/database:latest
before_script:
- composer config github-oauth.github.com $GITHUB_TOKEN
- if [ $CI_BUILD_REF_NAME = "1.0" ] ; then export COMPOSER_ROOT_VERSION="1.0-dev"; else export COMPOSER_ROOT_VERSION="dev-master"; fi
- composer install --no-interaction
- cp Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml Tests/Fixtures/App/app/config/parameters.yml
- ./console.sh --env=test cache:warmup
- ./console.sh doctrine:migrations:migrate --env=test --no-interaction
- ./console.sh doctrine:fixtures:load --env=test --no-interaction
test:php-5.6:
stage: test
script: phpunit --testdox
test:php-7:
stage: test
image: chill/ci-image:php-7
script: phpunit --testdox