From 903c115aa215d5439edea70245c7a3c95f7f247b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 19 Oct 2015 22:36:35 +0200 Subject: [PATCH] adding gitlab-ci MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Squashed commit of the following: commit 5a7195e4beb496c641b9bdb13ade5cf864d59eff Author: Julien Fastré Date: Mon Oct 19 22:15:15 2015 +0200 correct files paths commit 346ac3eaaf9e1da1915d08d525c7a488d75099af Author: Julien Fastré Date: Mon Oct 19 22:13:12 2015 +0200 correct paths commit 8720941f9b0e8e381f24108b0f3357d89f2e9b44 Author: Julien Fastré Date: Mon Oct 19 22:07:30 2015 +0200 add gitlab-ci to project --- .gitlab-ci.yml | 17 +++++++++++++++++ .../App/app/config/parameters.gitlab-ci.yml | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..4fba068b3 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml b/Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml new file mode 100644 index 000000000..9e3b75daf --- /dev/null +++ b/Tests/Fixtures/App/app/config/parameters.gitlab-ci.yml @@ -0,0 +1,7 @@ +parameters: + database_host: chill__database + database_port: 5432 + database_name: postgres + database_user: postgres + database_password: postgres + locale: fr