Merge branch 'push-develop' into 'develop'

add beta stage

See merge request framasoft/framadate!255
This commit is contained in:
Thomas Citharel 2018-03-28 16:51:07 +02:00
commit 3e09125719

View File

@ -2,6 +2,7 @@ image: framasoft/framadate-ci
stages: stages:
- test - test
- deploy - deploy
- beta
- funky - funky
# Run php-cs-fixer and phpunit on all branches # Run php-cs-fixer and phpunit on all branches
@ -37,6 +38,26 @@ pages:
only: only:
- master - master
# Deploy on develop
funky:
stage: beta
script:
- git checkout develop
- composer install -o --no-interaction --no-progress --prefer-dist --no-dev
- composer dump-autoload --optimize --no-dev --classmap-authoritative
- mkdir tpl_c
- mkdir .public
- cp -r * .public
- mv .public public
- mkdir "${HOME}/.ssh"
- chmod 700 "${HOME}/.ssh"
- if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
- eval `ssh-agent -s`
- if [ ! -z ${BETA_KEY+x} ]; then ssh-add <(echo "${BETA_KEY}" | base64 --decode -i); fi
- if [ ! -z ${BETA_KEY+x} ]; then rsync -a --delete --exclude admin/.stdout.log --exclude admin/.htpasswd --exclude app/inc/config.php --exclude stats/ --exclude error/ public/ ${BETA_USER}@${DEPLOYEMENT_HOST}:../../web/; fi
only:
- develop
# Deploy on funky # Deploy on funky
funky: funky:
stage: funky stage: funky