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)"
71 image: meltwater/drone-cache:dev
75 cache_key: '{{ .Repo.Name }}_php73_{{ arch }}_{{ os }}'
76 archive_format: "gzip"
82 - name: Composer install
83 image: friendicaci/php7.3:php7.3.28
85 - export COMPOSER_HOME=.composer
86 - ./bin/composer.phar validate
87 - ./bin/composer.phar install --prefer-dist
89 image: meltwater/drone-cache:dev
93 cache_key: '{{ .Repo.Name }}_php73_{{ arch }}_{{ os }}'
94 archive_format: "gzip"
100 - name: Test Friendica
101 image: friendicaci/php7.3:php7.3.28
103 MYSQL_HOST: "mariadb"
105 MYSQL_DATABASE: "test"
106 MYSQL_PASSWORD: "test"
109 MEMCACHED_HOST: "memcached"
110 MEMCACHE_HOST: "memcached"
112 - cp config/local-sample.config.php config/local.config.php
113 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
114 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
115 - phpunit --configuration tests/phpunit.xml
119 image: mariadb:latest
121 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
122 MYSQL_DATABASE: "test"
123 MYSQL_PASSWORD: "test"
137 path: /tmp/drone-cache
144 - name: Composer install
145 image: friendicaci/php7.4:php7.4.18
148 - composer install --prefer-dist
149 - name: Test Friendica
150 image: friendicaci/php7.4:php7.4.18
152 MYSQL_HOST: "mariadb"
154 MYSQL_DATABASE: "test"
155 MYSQL_PASSWORD: "test"
158 MEMCACHED_HOST: "memcached"
159 MEMCACHE_HOST: "memcached"
160 XDEBUG_MODE: "coverage"
163 - cp config/local-sample.config.php config/local.config.php
164 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
165 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
166 - phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
168 image: plugins/codecov
171 - friendica/friendica
174 from_secret: codecov-token
180 image: mariadb:latest
182 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
183 MYSQL_DATABASE: "test"
184 MYSQL_PASSWORD: "test"
200 - name: Composer install
201 image: friendicaci/php7.4:php7.4.18
204 - composer install --prefer-dist
205 - name: Test Friendica
206 image: friendicaci/php8.0:php8.0.5
208 MYSQL_HOST: "mariadb"
210 MYSQL_DATABASE: "test"
211 MYSQL_PASSWORD: "test"
214 MEMCACHED_HOST: "memcached"
215 MEMCACHE_HOST: "memcached"
217 - cp config/local-sample.config.php config/local.config.php
218 - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
219 - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
220 - phpunit --configuration tests/phpunit.xml
224 image: mariadb:latest
226 MYSQL_ALLOW_EMPTY_PASSWORD: "true"
227 MYSQL_DATABASE: "test"
228 MYSQL_PASSWORD: "test"