123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- services:
- mysql:
- image: mysql:5.7
- command: '--sql_mode=ALLOW_INVALID_DATES,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
- environment:
- - MYSQL_ROOT_PASSWORD=
- - MYSQL_ALLOW_EMPTY_PASSWORD=yes
- amqp:
- image: rabbitmq:3-management
- pipeline:
- build:
- image: docker.infra.flowdat.com/fd3/sf-php:latest
- environment:
- HOST_FTTH: ftth.test.fd3.flowdat.com
- HOST_STATS: stats.test.fd3.flowdat.com
- HOST_BASE: base.test.fd3.flowdat.com
- HOST_RADIUS: radius.fd3.flowdat.com
- HOST_CABLEMODEM: cablemodem.fd3.flowdat.com
- HOST_DHCP: dhcp.fd3.flowdat.com
- HOST_GEOSERVER: geoserver.fd3.flowdat.com
- HOST_DHCP: dhcp.fd3.flowdat.com
- HOST_GEOSERVER: geoserver.fd3.flowdat.com
- OAUTH_CLIENT_ID: ""
- OAUTH_CLIENT_SECRET: ""
- AMQP_KEY: ""
- CLIENT: fd3
- MYSQL_ROOT_PASSWORD: ""
- DOMAIN: flowdat.com
- MODULES_INSTALL: "base,ftth,etc"
- commands:
- - command -v mysqladmin >/dev/null 2>&1 || { echo "I require mysqladmin but it's not installed. Aborting." >&2; exit 1; }
- - while ! mysqladmin ping -h mysql --silent; do :; done
- - yes | mysqladmin -h mysql create fd3_stats
- - yes | mysqladmin -h mysql create fd_session
- - echo 'client = Flowdat3-Stats-Drone-Test' | tee /etc/flowdat.conf
- - echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php/7.0/cli/php.ini
- - chmod 0400 keys/bitbucket.id_rsa
- - eval $(ssh-agent); ssh-add keys/bitbucket.id_rsa
- - composer install --no-interaction --no-progress
- - chmod 0777 -R var/logs var/cache var/sessions
- - php bin/console doctrine:schema:update --force -vvv --env=test
- - vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist
- docker:
- repo : docker.infra.flowdat.com/fd3/stats
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- tag:
- - "latest"
- when:
- event: [push]
- branch: [master]
- docker_tag:
- repo : docker.infra.flowdat.com/fd3/stats
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- tag:
- - "${DRONE_TAG##v}"
- when:
- event: [tag]
- branch: [v*]
|