Skip to content
Snippets Groups Projects
Commit 83d35654 authored by Thomas Citharel's avatar Thomas Citharel
Browse files

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


Signed-off-by: default avatarThomas Citharel <tcit@tcit.fr>
parent 89dd2fbc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment