123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- services:
- database:
- 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_MAPAS: mapas.test.fd3.flowdat.com
- HOST_BASE: base.test.fd3.flowdat.com
- OAUTH_CLIENT_ID: ""
- OAUTH_CLIENT_SECRET: ""
-
- 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 127.0.0.1 --silent; do :; done
- - echo 'Acquire::http { Proxy "http://200.50.168.30:3142"; };' > /etc/apt/apt.conf.d/01proxy
- - yes | mysqladmin -h 127.0.0.1 create fd3_stats
- - yes | mysqladmin -h 127.0.0.1 create fd_session
-
- - echo 'client = Flowdat3-Stats-Drone-Test' | tee /etc/flowdat.conf
- - 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 --tap
- docker:
- repo : docker.infra.flowdat.com/fd3/stats
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- username: drone
- password: 6hd2dLfL
- tag:
- - latest
- when:
- event: [pull_request, push, tag]
- branch: [master]
- tag_docker:
- repo : docker.infra.flowdat.com/fd3/stats
- image: plugins/docker
- email: luciano@interlink.com.ar
- registry: docker.infra.flowdat.com
- username: drone
- password: 6hd2dLfL
- tag:
- - ${DRONE_TAG##v}
- when:
- event: [pull_request, push, tag]
- branch: [v*]
|