|
@@ -20,13 +20,14 @@ pipeline:
|
|
OAUTH_CLIENT_ID: ""
|
|
OAUTH_CLIENT_ID: ""
|
|
OAUTH_CLIENT_SECRET: ""
|
|
OAUTH_CLIENT_SECRET: ""
|
|
AMQP_KEY: ""
|
|
AMQP_KEY: ""
|
|
|
|
+ CLIENT: fd3
|
|
commands:
|
|
commands:
|
|
- command -v mysqladmin >/dev/null 2>&1 || { echo "I require mysqladmin but it's not installed. Aborting." >&2; exit 1; }
|
|
- 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
|
|
- while ! mysqladmin ping -h 127.0.0.1 --silent; do :; done
|
|
|
|
|
|
- yes | mysqladmin -h 127.0.0.1 create fd3_radius
|
|
- yes | mysqladmin -h 127.0.0.1 create fd3_radius
|
|
- yes | mysqladmin -h 127.0.0.1 create fd_session
|
|
- yes | mysqladmin -h 127.0.0.1 create fd_session
|
|
-
|
|
|
|
|
|
+
|
|
- echo 'client = Flowdat3-Radius-Drone-Test' | tee /etc/flowdat.conf
|
|
- echo 'client = Flowdat3-Radius-Drone-Test' | tee /etc/flowdat.conf
|
|
- echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php/7.0/cli/php.ini
|
|
- echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php/7.0/cli/php.ini
|
|
|
|
|
|
@@ -39,7 +40,7 @@ pipeline:
|
|
- chmod 0777 -R var/logs var/cache var/sessions
|
|
- chmod 0777 -R var/logs var/cache var/sessions
|
|
- php bin/console doctrine:schema:update --force -vvv --env=test
|
|
- php bin/console doctrine:schema:update --force -vvv --env=test
|
|
- touch var/logs/test.log
|
|
- touch var/logs/test.log
|
|
- - tail -f var/logs/*.log &
|
|
|
|
|
|
+ - tail -f var/logs/*.log &
|
|
# - bin/console server:run --help --end=prod
|
|
# - bin/console server:run --help --end=prod
|
|
- vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist
|
|
- vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist
|
|
|
|
|
|
@@ -50,7 +51,7 @@ pipeline:
|
|
registry: docker.infra.flowdat.com
|
|
registry: docker.infra.flowdat.com
|
|
username: drone
|
|
username: drone
|
|
password: 6hd2dLfL
|
|
password: 6hd2dLfL
|
|
- tag:
|
|
|
|
|
|
+ tag:
|
|
- latest
|
|
- latest
|
|
when:
|
|
when:
|
|
event: [pull_request, push, tag]
|
|
event: [pull_request, push, tag]
|
|
@@ -63,9 +64,8 @@ pipeline:
|
|
registry: docker.infra.flowdat.com
|
|
registry: docker.infra.flowdat.com
|
|
username: drone
|
|
username: drone
|
|
password: 6hd2dLfL
|
|
password: 6hd2dLfL
|
|
- tag:
|
|
|
|
|
|
+ tag:
|
|
- ${DRONE_TAG##v}
|
|
- ${DRONE_TAG##v}
|
|
when:
|
|
when:
|
|
event: [pull_request, push, tag]
|
|
event: [pull_request, push, tag]
|
|
branch: [v*]
|
|
branch: [v*]
|
|
-
|
|
|