Skip to content

Commit

Permalink
phalcon 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
someson committed Nov 13, 2022
1 parent 4fce236 commit 42cd22a
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 9 deletions.
53 changes: 49 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
version: 2

jobs:
test:

test80:
docker:
- image: cimg/php:8.0

Expand All @@ -16,11 +17,54 @@ jobs:
sudo pecl install xdebug
- run:
name: Install Phalcon v5.0.0
name: Install Phalcon v5.1.1
command: |
sudo apt install gcc libpcre3-dev -y
sudo pecl channel-update pecl.php.net
sudo pecl install phalcon-5.1.1
- run: sudo composer selfupdate
- restore_cache:
keys:
- composer-v1-{{ checksum "composer.json" }}
- composer-v1-
- run: composer install -n --no-interaction --prefer-source
- save_cache:
key: composer-v1-{{ checksum "composer.json" }}
paths:
- ./vendor

- run:
name: Run Codeception tests
environment:
XDEBUG_MODE: coverage
command: |
./vendor/bin/codecept build
./vendor/bin/codecept run --coverage --coverage-xml
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
test81:
docker:
- image: cimg/php:8.1

steps:
- checkout
- run:
name: Install PHP Extensions
command: |
sudo apt-get update -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get install php8.1-psr php8.1-yaml -y
sudo pecl install xdebug
- run:
name: Install Phalcon v5.1.1
command: |
sudo apt install gcc libpcre3-dev -y
sudo pecl channel-update pecl.php.net
sudo pecl install phalcon-5.0.0
sudo pecl install phalcon-5.1.1
- run: sudo composer selfupdate
- restore_cache:
Expand Down Expand Up @@ -48,4 +92,5 @@ workflows:
version: 2
workflow:
jobs:
- test
- test80
- test81
7 changes: 4 additions & 3 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libzip-dev \
libyaml-dev \
zip \
libssl-dev \
libicu-dev \
zip \
unzip \
&& rm -rf /var/lib/apt/lists/*

ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
Expand All @@ -19,7 +20,7 @@ RUN set -xe \
&& docker-php-ext-install -j$(nproc) zip calendar intl pdo_mysql \
&& pecl clear-cache

ENV PHALCON_VERSION=5.0.0 \
ENV PHALCON_VERSION=5.1.1 \
PSR_VERSION=1.1.0

RUN set -xe \
Expand All @@ -41,4 +42,4 @@ COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
COPY php.ini /usr/local/etc/php/conf.d/php-override.ini
RUN touch /var/log/remote.log && chmod 666 /var/log/remote.log

WORKDIR /var/www/html
WORKDIR /var/www
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@

Extending [Phalcon Framework v5 Translations Module](https://docs.phalcon.io/5.0/en/translate)

## Install

```bash
$ composer require someson/phalcon-18n
```

## Example

e.g. `login.json` File:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": ["phalcon", "i18n", "translate"],
"type": "library",
"require": {
"php": "8.0.*",
"php": "^8.0",
"ext-json": "*",
"ext-phalcon": "^5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ services:
env_file:
- ./.docker/.php.env
volumes:
- .:/var/www/html:cached
- .:/var/www:cached
- ~/composer:/root/.composer
tty: true

0 comments on commit 42cd22a

Please sign in to comment.