Refactor to put tests outside of deployment and optimize autoloader on builds

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-02-20 08:54:11 +01:00
parent 89dd2fbc35
commit 83d3565472

View File

@ -18,8 +18,6 @@ test:
- mkdir tpl_c - mkdir tpl_c
- php vendor/bin/php-cs-fixer fix --verbose --dry-run - php vendor/bin/php-cs-fixer fix --verbose --dry-run
- vendor/bin/phpunit --bootstrap app/tests/bootstrap.php --debug app/tests - vendor/bin/phpunit --bootstrap app/tests/bootstrap.php --debug app/tests
except:
- master
# Create artifacts on master # Create artifacts on master
pages: pages:
@ -27,10 +25,9 @@ pages:
script: script:
- latesttag=$(git describe --tags) - latesttag=$(git describe --tags)
- git checkout ${latesttag} - 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 - 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 . - zip -r latest.zip .
- mkdir .public - mkdir .public
- cp latest.zip .public - cp latest.zip .public