1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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
- - echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php/7.0/cli/php.ini
- - cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml
- - 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
- 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*]
|