mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
adding gitlab-ci to repo
This commit is contained in:
parent
18a6c0ec10
commit
df2755a84d
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal 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
|
11
Tests/Fixtures/App/config/parameters.gitlab-ci.yml
Normal file
11
Tests/Fixtures/App/config/parameters.gitlab-ci.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user