From 83d35654728b02fb3939eb978976e5ca53b2ef4c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 20 Feb 2018 08:54:11 +0100 Subject: [PATCH] Refactor to put tests outside of deployment and optimize autoloader on builds Signed-off-by: Thomas Citharel --- .gitlab-ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed2e899..6c84ca0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,8 +18,6 @@ test: - mkdir tpl_c - php vendor/bin/php-cs-fixer fix --verbose --dry-run - vendor/bin/phpunit --bootstrap app/tests/bootstrap.php --debug app/tests - except: - - master # Create artifacts on master pages: @@ -27,10 +25,9 @@ pages: script: - latesttag=$(git describe --tags) - git checkout ${latesttag} - - php composer.phar install -o --no-interaction --no-progress --prefer-dist + - php composer.phar install -o --no-interaction --no-progress --prefer-dist --no-dev + - php composer.phar dump-autoload --optimize --no-dev --classmap-authoritative - mkdir tpl_c - - php vendor/bin/php-cs-fixer fix --verbose --dry-run - - vendor/bin/phpunit --bootstrap app/tests/bootstrap.php --debug app/tests - zip -r latest.zip . - mkdir .public - cp latest.zip .public