Fix #271
Fix #272

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-03-19 10:45:35 +01:00
parent 8931255033
commit ff3dcc9249

View File

@ -8,12 +8,12 @@ stages:
before_script: before_script:
- apt-get update -yqq - apt-get update -yqq
- apt-get install zip unzip git -yqq - apt-get install zip unzip git -yqq
- curl --silent --show-error https://getcomposer.org/installer | php
# Run php-cs-fixer and phpunit on all branches # Run php-cs-fixer and phpunit on all branches
test: test:
stage: test stage: test
script: script:
- curl --silent --show-error https://getcomposer.org/installer | php
- php composer.phar install -o --no-interaction --no-progress --prefer-dist - php composer.phar install -o --no-interaction --no-progress --prefer-dist
- 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
@ -28,10 +28,14 @@ pages:
script: script:
- latesttag=$(git describe --tags) - latesttag=$(git describe --tags)
- git checkout ${latesttag} - git checkout ${latesttag}
- curl --silent --show-error https://getcomposer.org/installer | php
- php composer.phar install -o --no-interaction --no-progress --prefer-dist --no-dev - php composer.phar install -o --no-interaction --no-progress --prefer-dist --no-dev
- php composer.phar dump-autoload --optimize --no-dev --classmap-authoritative - php composer.phar dump-autoload --optimize --no-dev --classmap-authoritative
- rm -rf composer.phar
- mkdir tpl_c - mkdir tpl_c
- zip -r latest.zip . - mkdir framadate
- mv * framadate
- zip -r latest.zip framadate
- mkdir .public - mkdir .public
- cp latest.zip .public - cp latest.zip .public
- mv .public public - mv .public public
@ -46,6 +50,7 @@ funky:
stage: funky stage: funky
script: script:
- git checkout funky - git checkout funky
- curl --silent --show-error https://getcomposer.org/installer | php
- php composer.phar install - php composer.phar install
- mkdir tpl_c - mkdir tpl_c
- mkdir .public - mkdir .public