mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
add gitlab-ci
This commit is contained in:
parent
4abb994725
commit
c47ad68586
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal 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
|
7
Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml
Normal file
7
Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml
Normal file
@ -0,0 +1,7 @@
|
||||
parameters:
|
||||
database_host: localhost
|
||||
database_port: 5432
|
||||
database_name: postgres
|
||||
database_user: postgres
|
||||
database_password: postgres
|
||||
locale: fr
|
Loading…
x
Reference in New Issue
Block a user