adding gitlab-ci to repo

This commit is contained in:
Julien Fastré 2015-10-17 00:35:55 +02:00
parent 18a6c0ec10
commit df2755a84d
2 changed files with 29 additions and 0 deletions

18
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,18 @@
services:
- postgres:9.4
before_script:
- export GITHUB_COMPOSER_AUTH=$GITHUB_TOKEN
- composer install
- cp Tests/Fixtures/App/config/parameters.gitlab-ci.yml Tests/Fixtures/App/config/parameters.yml
- php Tests/Fixtures/App/console --env=test cache:warmup
- php Tests/Fixtures/App/console doctrine:migrations:migrate --env=test --no-interaction
- php Tests/Fixtures/App/console doctrine:fixtures:load --env=test --no-interaction
test:php-5.6:
stage: test
script: phpunit --testdox
test:php-7:
stage: test
script: phpunit --testdox

View File

@ -0,0 +1,11 @@
parameters:
database_host: postgres
database_port: 5432
database_name: postgres
database_user: postgres
database_password: postgres
locale: fr
secret: ThisTokenIsNotSoSecretChangeIt
debug_toolbar: true
debug_redirects: false
use_assetic_controller: true