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: Test Friendica
71 image: friendicaci/php7.3:php7.3.28
75 MYSQL_DATABASE: "test"
76 MYSQL_PASSWORD: "test"
79 MEMCACHED_HOST: "memcached"
80 MEMCACHE_HOST: "memcached"
83 - composer install --prefer-dist
84 - cp config/local-sample.config.php config/local.config.php
85 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
86 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
87 - phpunit --configuration tests/phpunit.xml
93 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
94 MYSQL_DATABASE: "test"
95 MYSQL_PASSWORD: "test"
111 - name: Test Friendica
112 image: friendicaci/php7.4:php7.4.18
114 MYSQL_HOST: "mariadb"
116 MYSQL_DATABASE: "test"
117 MYSQL_PASSWORD: "test"
120 MEMCACHED_HOST: "memcached"
121 MEMCACHE_HOST: "memcached"
122 XDEBUG_MODE: "coverage"
126 - composer install --prefer-dist
127 - cp config/local-sample.config.php config/local.config.php
128 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
129 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
130 - phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
132 image: plugins/codecov
135 - friendica/friendica
138 from_secret: codecov-token
144 image: mariadb:latest
146 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
147 MYSQL_DATABASE: "test"
148 MYSQL_PASSWORD: "test"
164 - name: Test Friendica
165 image: friendicaci/php8.0:php8.0.5
167 MYSQL_HOST: "mariadb"
169 MYSQL_DATABASE: "test"
170 MYSQL_PASSWORD: "test"
173 MEMCACHED_HOST: "memcached"
174 MEMCACHE_HOST: "memcached"
177 - composer install --prefer-dist
178 - cp config/local-sample.config.php config/local.config.php
179 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
180 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
181 - phpunit --configuration tests/phpunit.xml
185 image: mariadb:latest
187 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
188 MYSQL_DATABASE: "test"
189 MYSQL_PASSWORD: "test"