Commit 60da555f authored by Ludovic Ganée's avatar Ludovic Ganée

export de la couverture de code

parent d39078d6
Pipeline #8074 failed with stage
in 20 seconds
image: lganee/fatapache:a4
cache:
key: build-cache
paths:
- vendor/
image: lganee/fatapache:a6-php7.3
variables:
COMPOSER_ALLOW_SUPERUSER: "1"
test:
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY_DEPLOY_DEV")
- mkdir -p ~/.ssh data/ tmp/ logs/
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- composer update
- vendor/phpunit/phpunit/phpunit --coverage-text --colors=never
- date +"%T"
- wget -nv $URL_GET_VENDOR -O $PWD/asalae-vendor.zip
- unzip -q -o $PWD/asalae-vendor.zip -d $PWD
- date +"%T"
- composer dump-autoload
- vendor/pcov/clobber/bin/pcov clobber
- vendor/phpunit/phpunit/phpunit --printer "rpkamp\FancyTestdoxPrinter" --coverage-text --coverage-html coverage-output/
- date +"%T"
- cd $PWD/coverage-output/ && zip -q -r $PWD/coverage.cakephp-beanstalk.zip .
- scp -P $SSH_PORT_DEPLOY_DEV $PWD/coverage.cakephp-beanstalk.zip $URL_DEPLOY_DEV:$DEPLOY_DIR
- ssh -p $SSH_PORT_DEPLOY_DEV $URL_DEPLOY_DEV "sudo rm -rf $DEPLOY_DIR/webroot/coverage/cakephp-beanstalk"
- ssh -p $SSH_PORT_DEPLOY_DEV $URL_DEPLOY_DEV "sudo unzip -q -o $DEPLOY_DIR/coverage.cakephp-beanstalk.zip -d $DEPLOY_DIR/webroot/coverage/cakephp-beanstalk"
- ssh -p $SSH_PORT_DEPLOY_DEV $URL_DEPLOY_DEV "sudo rm -fr $DEPLOY_DIR/coverage.cakephp-beanstalk.zip"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment