adding gitlab-ci

Squashed commit of the following:

commit 5a7195e4beb496c641b9bdb13ade5cf864d59eff
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Oct 19 22:15:15 2015 +0200

    correct files paths

commit 346ac3eaaf9e1da1915d08d525c7a488d75099af
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Oct 19 22:13:12 2015 +0200

    correct paths

commit 8720941f9b0e8e381f24108b0f3357d89f2e9b44
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Oct 19 22:07:30 2015 +0200

    add gitlab-ci to project
This commit is contained in:
Julien Fastré 2015-10-19 22:36:35 +02:00
parent ad8fe8c147
commit 903c115aa2
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:
- export GITHUB_COMPOSER_AUTH=$GITHUB_TOKEN
- composer install --no-interaction
- cp Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml Tests/Fixtures/App/app/config/parameters.yml
- php Tests/Fixtures/App/app/console.php --env=test cache:warmup
- php Tests/Fixtures/App/app/console.php doctrine:migrations:migrate --env=test --no-interaction
- php Tests/Fixtures/App/app/console.php 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: chill__database
database_port: 5432
database_name: postgres
database_user: postgres
database_password: postgres
locale: fr