File tree Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ FROM php:${PHP_VERSION}
4
4
# Create app directory
5
5
WORKDIR /usr/src/app
6
6
7
- COPY . .
8
-
9
7
# Install git
10
8
RUN apt-get update && \
11
9
apt-get install -y --no-install-recommends git
@@ -15,10 +13,9 @@ RUN apt-get install -y \
15
13
libzip-dev \
16
14
zip \
17
15
&& docker-php-ext-install zip
18
-
16
+
19
17
# Install composer
20
18
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
21
19
22
- # Install dependencies using composer
23
- RUN composer global require hirak/prestissimo && \
24
- composer install --prefer-dist --no-progress --no-interaction
20
+ # Install prestissimo pluing for composer
21
+ RUN composer global require hirak/prestissimo
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ repo=$(realpath $(dirname $(realpath -s $0))/../)
33
33
34
34
docker run \
35
35
--network=${network_name} \
36
- --env " STACK_VERSION=${STACK_VERSION} " \
37
- --env " TEST_SUITE=${TEST_SUITE} " \
38
- --env " PHP_VERSION=${PHP_VERSION} " \
39
- --env " ELASTICSEARCH_URL=${ELASTICSEARCH_URL} " \
40
36
--volume $repo :/usr/src/app \
37
+ --env STACK_VERSION=${STACK_VERSION} \
38
+ --env TEST_SUITE=${TEST_SUITE} \
39
+ --env PHP_VERSION=${PHP_VERSION} \
40
+ --env ELASTICSEARCH_URL=${ELASTICSEARCH_URL} \
41
41
--ulimit nofile=65535:65535 \
42
42
--name elasticsearch-php \
43
43
--rm \
44
- elastic/elasticsearch-php \
45
- php util/RestSpecRunner.php && vendor/bin/phpunit -c phpunit-integration.xml --group sync
44
+ elastic/elasticsearch-php
45
+ $script_path /run-yaml-tests.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ composer install
4
+ git submodule update --init --recursive
5
+ php util/RestSpecRunner.php
6
+ vendor/bin/phpunit -c phpunit-integration.xml --group sync
Original file line number Diff line number Diff line change 1
1
---
2
2
STACK_VERSION :
3
- - 7.7 .0-SNAPSHOT
3
+ - 8.0 .0-SNAPSHOT
4
4
5
5
PHP_VERSION :
6
6
- 7.4-cli
You can’t perform that action at this time.
0 commit comments