add gitlab-ci

This commit is contained in:
Julien Fastré 2015-10-26 20:59:33 +01:00
parent 4abb994725
commit c47ad68586
2 changed files with 24 additions and 0 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
services:
- chill/database:latest
before_script:
- composer config -g github-oauth.github.com $GITHUB_TOKEN
- 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
script: phpunit --testdox

View File

@ -0,0 +1,7 @@
parameters:
database_host: localhost
database_port: 5432
database_name: postgres
database_user: postgres
database_password: postgres
locale: fr