Skip to content

Commit 4232b88

Browse files
committed
Updates to testing suite.
1 parent 1491b94 commit 4232b88

File tree

5 files changed

+32
-13
lines changed

5 files changed

+32
-13
lines changed

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM mlocati/php-extension-installer AS php-extension-installer
2+
3+
FROM php:8.4-cli-alpine3.19 AS base
4+
5+
ENV TZ=UTC
6+
7+
COPY --from=php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
8+
9+
RUN install-php-extensions @composer gd curl xml zip mbstring
10+
11+
RUN apk add --update --no-cache \
12+
zip git curl bash \
13+
su-exec
14+
15+
# Set up App user
16+
RUN mkdir -p /var/app/www \
17+
&& addgroup -g 1000 app \
18+
&& adduser -u 1000 -G app -h /var/app/ -s /bin/sh -D app \
19+
&& addgroup app www-data \
20+
&& mkdir -p /var/app/www /var/app/www_tmp \
21+
&& chown -R app:app /var/app
22+
23+
WORKDIR /var/app/www

docker-compose.testing.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44

55
services:
66
cli:
7-
image: azuracast/azuracast_testing:latest
7+
build:
8+
context: .
89
volumes:
910
- ./:/app
10-
- composer_data:/tmp
1111
env_file: azuracast.env
1212
command: /bin/true
1313
web:
1414
volumes:
1515
- ./tests/resources/:/var/azuracast/init_music
16-
17-
volumes:
18-
composer_data: {}

docker-compose.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
services:
22
cli:
3-
image: azuracast/azuracast_testing:latest
3+
build:
4+
context: .
45
volumes:
5-
- ./:/app
6-
- composer_data:/tmp
6+
- ./:/var/app/www
77
environment:
88
AZURACAST_HOST: "${AZURACAST_HOST:-https://demo.azuracast.com/}"
99
AZURACAST_API_KEY: "${AZURACAST_API_KEY:-}"
1010
AZURACAST_STATION_ID: "${AZURACAST_STATION_ID:-1}"
1111
command: composer test
12-
13-
volumes:
14-
composer_data: {}

phpstan.neon

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ parameters:
44
paths:
55
- src
66

7-
checkMissingIterableValueType: false
7+
ignoreErrors:
8+
-
9+
identifier: missingType.iterableValue
810

911
universalObjectCratesClasses:
1012
- Azura\Session\NamespaceInterface

src/Dto/PermissionsDto.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function setGlobal(array $global): PermissionsDto
4848
}
4949

5050
/**
51-
* @return string[]
51+
* @return array<int, array<int, string>>
5252
*/
5353
public function getStation(): array
5454
{

0 commit comments

Comments
 (0)