Split drone steps for readability

This commit is contained in:
Philipp Holzer 2021-05-24 20:31:10 +02:00
parent ea4b066df3
commit 6428e417db
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -67,6 +67,11 @@ type: docker
name: php7.3-mariadb name: php7.3-mariadb
steps: steps:
- name: Composer install
image: friendicaci/php7.4:php7.4.18
commands:
- composer validate
- composer install --prefer-dist
- name: Test Friendica - name: Test Friendica
image: friendicaci/php7.3:php7.3.28 image: friendicaci/php7.3:php7.3.28
environment: environment:
@ -79,8 +84,6 @@ steps:
MEMCACHED_HOST: "memcached" MEMCACHED_HOST: "memcached"
MEMCACHE_HOST: "memcached" MEMCACHE_HOST: "memcached"
commands: commands:
- composer validate
- composer install --prefer-dist
- cp config/local-sample.config.php config/local.config.php - cp config/local-sample.config.php config/local.config.php
- if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
- mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
@ -108,6 +111,11 @@ type: docker
name: php7.4-mariadb name: php7.4-mariadb
steps: steps:
- name: Composer install
image: friendicaci/php7.4:php7.4.18
commands:
- composer validate
- composer install --prefer-dist
- name: Test Friendica - name: Test Friendica
image: friendicaci/php7.4:php7.4.18 image: friendicaci/php7.4:php7.4.18
environment: environment:
@ -122,8 +130,6 @@ steps:
XDEBUG_MODE: "coverage" XDEBUG_MODE: "coverage"
commands: commands:
- phpenmod xdebug - phpenmod xdebug
- composer validate
- composer install --prefer-dist
- cp config/local-sample.config.php config/local.config.php - cp config/local-sample.config.php config/local.config.php
- if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
- mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
@ -161,6 +167,11 @@ type: docker
name: php8.0-mariadb name: php8.0-mariadb
steps: steps:
- name: Composer install
image: friendicaci/php7.4:php7.4.18
commands:
- composer validate
- composer install --prefer-dist
- name: Test Friendica - name: Test Friendica
image: friendicaci/php8.0:php8.0.5 image: friendicaci/php8.0:php8.0.5
environment: environment:
@ -173,8 +184,6 @@ steps:
MEMCACHED_HOST: "memcached" MEMCACHED_HOST: "memcached"
MEMCACHE_HOST: "memcached" MEMCACHE_HOST: "memcached"
commands: commands:
- composer validate
- composer install --prefer-dist
- cp config/local-sample.config.php config/local.config.php - cp config/local-sample.config.php config/local.config.php
- if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
- mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql