3 name: Check messages.po
6 - name: Run default Xgettext
7 image: friendicaci/transifex
9 - ./bin/run_xgettext.sh
12 image: friendicaci/transifex
24 - ./bin/composer.phar run lint
34 - ./bin/composer.phar run lint
44 - ./bin/composer.phar run lint
55 - name: Install dependencies
58 - ./bin/composer.phar run cs:install
59 - name: Run coding standards check
60 image: friendicaci/php-cs
62 - export CHANGED_FILES="$(git diff --name-status ${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER} | grep ^A | cut -f2)"
70 - name: Composer install
71 image: friendicaci/php7.4:php7.4.18
74 - composer install --prefer-dist
75 - name: Test Friendica
76 image: friendicaci/php7.3:php7.3.28
80 MYSQL_DATABASE: "test"
81 MYSQL_PASSWORD: "test"
84 MEMCACHED_HOST: "memcached"
85 MEMCACHE_HOST: "memcached"
87 - cp config/local-sample.config.php config/local.config.php
88 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
89 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
90 - phpunit --configuration tests/phpunit.xml
96 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
97 MYSQL_DATABASE: "test"
98 MYSQL_PASSWORD: "test"
114 - name: Composer install
115 image: friendicaci/php7.4:php7.4.18
118 - composer install --prefer-dist
119 - name: Test Friendica
120 image: friendicaci/php7.4:php7.4.18
122 MYSQL_HOST: "mariadb"
124 MYSQL_DATABASE: "test"
125 MYSQL_PASSWORD: "test"
128 MEMCACHED_HOST: "memcached"
129 MEMCACHE_HOST: "memcached"
130 XDEBUG_MODE: "coverage"
133 - cp config/local-sample.config.php config/local.config.php
134 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
135 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
136 - phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
138 image: plugins/codecov
141 - friendica/friendica
144 from_secret: codecov-token
150 image: mariadb:latest
152 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
153 MYSQL_DATABASE: "test"
154 MYSQL_PASSWORD: "test"
170 - name: Composer install
171 image: friendicaci/php7.4:php7.4.18
174 - composer install --prefer-dist
175 - name: Test Friendica
176 image: friendicaci/php8.0:php8.0.5
178 MYSQL_HOST: "mariadb"
180 MYSQL_DATABASE: "test"
181 MYSQL_PASSWORD: "test"
184 MEMCACHED_HOST: "memcached"
185 MEMCACHE_HOST: "memcached"
187 - cp config/local-sample.config.php config/local.config.php
188 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
189 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
190 - phpunit --configuration tests/phpunit.xml
194 image: mariadb:latest
196 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
197 MYSQL_DATABASE: "test"
198 MYSQL_PASSWORD: "test"