From df2755a84da0f845a538db9a41076b529ae3bfc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 17 Oct 2015 00:35:55 +0200 Subject: [PATCH] adding gitlab-ci to repo --- .gitlab-ci.yml | 18 ++++++++++++++++++ .../App/config/parameters.gitlab-ci.yml | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Tests/Fixtures/App/config/parameters.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..a977dc9a2 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file diff --git a/Tests/Fixtures/App/config/parameters.gitlab-ci.yml b/Tests/Fixtures/App/config/parameters.gitlab-ci.yml new file mode 100644 index 000000000..df4c11b68 --- /dev/null +++ b/Tests/Fixtures/App/config/parameters.gitlab-ci.yml @@ -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 \ No newline at end of file