Skip to content

Commit 442c25c

Browse files
authored
Regular update (#27)
1 parent 55e9a0d commit 442c25c

File tree

7 files changed

+23
-18
lines changed

7 files changed

+23
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
66

7+
## v3.2.0
8+
9+
### Changed
10+
11+
- Dependency `tarampampam/wrappers-php` version `~2.0` is supported
12+
713
## v3.1.0
814

915
### Changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM php:7.2.5-alpine
1+
FROM php:7.3.5-alpine
22

33
ENV \
44
COMPOSER_ALLOW_SUPERUSER="1" \
55
COMPOSER_HOME="/tmp/composer"
66

7-
COPY --from=composer:1.10.7 /usr/bin/composer /usr/bin/composer
7+
COPY --from=composer:1.10.10 /usr/bin/composer /usr/bin/composer
88

99
RUN set -x \
1010
&& apk add --no-cache binutils git \
1111
&& apk add --no-cache --virtual .build-deps autoconf pkgconf make g++ gcc 1>/dev/null \
1212
# install xdebug (for testing with code coverage), but do not enable it
13-
&& pecl install xdebug-2.9.1 1>/dev/null \
13+
&& pecl install xdebug-2.9.6 1>/dev/null \
1414
&& apk del .build-deps \
1515
&& mkdir /src ${COMPOSER_HOME} \
1616
&& composer global require 'hirak/prestissimo' --no-interaction --no-suggest --prefer-dist \

Makefile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
# Makefile readme (ru): <http://linux.yaroslavl.ru/docs/prog/gnu_make_3-79_russian_manual.html>
33
# Makefile readme (en): <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents>
44

5-
dc_bin := $(shell command -v docker-compose 2> /dev/null)
6-
75
SHELL = /bin/sh
8-
RUN_APP_ARGS = --rm --user "$(shell id -u):$(shell id -g)" app
6+
RUN_APP_ARGS = --rm --user "$(shell id -u):$(shell id -g)"
97

108
.PHONY : help build latest install lowest test test-cover shell clean
119
.DEFAULT_GOAL : help
@@ -16,26 +14,25 @@ help: ## Show this help
1614
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[32m%-14s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
1715

1816
build: ## Build docker images, required for current package environment
19-
$(dc_bin) build
17+
docker-compose build
2018

2119
latest: clean ## Install latest php dependencies
22-
$(dc_bin) run $(RUN_APP_ARGS) composer update -n --ansi --no-suggest --prefer-dist --prefer-stable
20+
docker-compose run $(RUN_APP_ARGS) app composer update -n --ansi --no-suggest --prefer-dist --prefer-stable
2321

2422
install: clean ## Install regular php dependencies
25-
$(dc_bin) run $(RUN_APP_ARGS) composer update -n --prefer-dist --no-interaction --no-suggest
23+
docker-compose run $(RUN_APP_ARGS) app composer update -n --prefer-dist --no-interaction --no-suggest
2624

2725
lowest: clean ## Install lowest php dependencies
28-
$(dc_bin) run $(RUN_APP_ARGS) composer update -n --ansi --no-suggest --prefer-dist --prefer-lowest
26+
docker-compose run $(RUN_APP_ARGS) app composer update -n --ansi --no-suggest --prefer-dist --prefer-lowest
2927

3028
test: ## Execute php tests and linters
31-
$(dc_bin) run $(RUN_APP_ARGS) composer test
29+
docker-compose run $(RUN_APP_ARGS) app composer test
3230

3331
test-cover: ## Execute php tests with coverage
34-
$(dc_bin) run --rm --user "0:0" app sh -c 'docker-php-ext-enable xdebug && su $(shell whoami) -s /bin/sh -c "composer phpunit-cover"'
32+
docker-compose run --rm --user "0:0" app sh -c 'docker-php-ext-enable xdebug && su $(shell whoami) -s /bin/sh -c "composer phpunit-cover"'
3533

3634
shell: ## Start shell into container with php
37-
$(dc_bin) run -e "PS1=\[\033[1;32m\]\[\033[1;36m\][\u@docker] \[\033[1;34m\]\w\[\033[0;35m\] \[\033[1;36m\]# \[\033[0m\]" \
38-
$(RUN_APP_ARGS) sh
35+
docker-compose run $(RUN_APP_ARGS) app sh
3936

4037
clean: ## Remove all dependencies and unimportant files
4138
-rm -Rf ./composer.lock ./vendor ./sdk/php/coverage

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This repository contains regularly updated static references data.
2020
Require this package with composer using the following command:
2121

2222
```shell
23-
$ composer require avto-dev/static-references-data "^3.0"
23+
$ composer require avto-dev/static-references-data "^3.2"
2424
```
2525

2626
> Installed `composer` is required ([how to install composer][getcomposer]).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
],
1717
"require": {
1818
"php": "^7.2",
19-
"tarampampam/wrappers-php": "^1.2"
19+
"tarampampam/wrappers-php": "^1.2 || ~2.0"
2020
},
2121
"require-dev": {
2222
"ext-json": "*",
2323
"opis/json-schema": "^1.0.8",
2424
"phpstan/phpstan": "~0.12",
25-
"phpunit/phpunit": "~7.5"
25+
"phpunit/phpunit": "^8.5.4"
2626
},
2727
"autoload": {
2828
"psr-4": {

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
build:
99
context: .
1010
dockerfile: Dockerfile
11+
environment:
12+
PS1: '\[\033[1;32m\]\[\033[1;36m\][\u@docker] \[\033[1;34m\]\w\[\033[0;35m\] \[\033[1;36m\]# \[\033[0m\]'
1113
volumes:
1214
- /etc/passwd:/etc/passwd:ro
1315
- /etc/group:/etc/group:ro

sdk/php/tests/ReferencesData/StaticReferenceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testInstancesOf(): void
4343
public function testThrowExceptionOnPassedNonExistsFile(): void
4444
{
4545
$this->expectException(InvalidArgumentException::class);
46-
$this->expectExceptionMessageRegExp('~is not readable~i');
46+
$this->expectExceptionMessageMatches('~is not readable~i');
4747

4848
new StaticReference('');
4949
}

0 commit comments

Comments
 (0)