Skip to content

Commit 0d7199e

Browse files
authored
Merge pull request #372 from sergeyklay/3.x
Updated deps and tests
2 parents 6518dd9 + 96560fa commit 0d7199e

File tree

12 files changed

+370
-411
lines changed

12 files changed

+370
-411
lines changed

.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,4 @@ LOGGER_LEVEL=debug
8383

8484
GOOGLE_ANALYTICS=
8585

86-
PATREON_ENABLED=false
87-
PATREON_ID=
88-
8986
SOCIAL_TWITTER_NAME=phalconphp

.travis.yml

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
language: php
22

3-
sudo: required
3+
sudo: false
44
dist: trusty
55

66
php:
77
- 5.6
8-
9-
matrix:
10-
include:
11-
- php: 7.0
12-
env: ZEND_BACKEND="--backend=ZendEngine3"
13-
14-
services:
15-
- memcached
8+
- 7.0
9+
- 7.1
1610

1711
git:
1812
depth: 1
@@ -22,49 +16,37 @@ cache:
2216
ccache: true
2317
timeout: 691200
2418
directories:
25-
- .temp
2619
- vendor
27-
- $HOME/.ccache
2820
- $HOME/.composer/cache
29-
30-
env:
31-
global:
32-
- ZEND_DONT_UNLOAD_MODULES=1
33-
- CC="ccache gcc"
34-
- PATH="$PATH:~/bin"
35-
- PHALCON_VERSION="v3.0.3"
21+
- $HOME/cphalcon
22+
- $HOME/ext
3623

3724
before_install:
25+
- export PHP_VERSION=$(php-config --version)
26+
- export PHP_EXTENSION_DIR=$(php-config --extension-dir)
3827
- phpenv config-rm xdebug.ini || true
39-
- sudo ln -s /home/travis/.phpenv/versions/$(phpenv version-name)/bin/phpize /usr/bin/
40-
- sudo ln -s /home/travis/.phpenv/versions/$(phpenv version-name)/bin/php-config /usr/bin/
41-
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
42-
- travis_retry composer install --prefer-dist --no-interaction --ignore-platform-reqs
43-
- travis_retry composer require --dev "phalcon/zephir:dev-master" --ignore-platform-reqs
44-
- ( bash tests/_ci/install_zephir.sh )
45-
- ( bash tests/_ci/install_prereqs.sh )
28+
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com $GH_TOKEN; fi;
29+
- if [ ! -f "$HOME/cphalcon/tests/_ci/phalcon.ini" ]; then git clone -q --depth=1 https://github.com/phalcon/cphalcon.git $HOME/cphalcon >/dev/null 2>&1; fi;
4630

4731
install:
48-
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b ${PHALCON_VERSION}
49-
- ln -s ${TRAVIS_BUILD_DIR}/.temp ${TRAVIS_BUILD_DIR}/cphalcon/.temp
50-
- ( cd cphalcon; zephir fullclean && zephir generate $ZEND_BACKEND )
51-
- ( cd cphalcon/ext; export CFLAGS="-g3 -O1 -std=gnu90 -Wall -DZEPHIR_RELEASE=1"; /usr/bin/phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j3 &> /dev/null && make --silent install )
52-
- phpenv config-add cphalcon/tests/_ci/phalcon.ini
32+
- if [ ! -f $HOME/ext/$PHP_VERSION/phalcon.so ]; then cd $HOME/cphalcon/build && bash ./install --phpize $(phpenv which phpize) --php-config $(phpenv which php-config) && mkdir -p $HOME/ext/$PHP_VERSION && cp $PHP_EXTENSION_DIR/phalcon.so $HOME/ext/$PHP_VERSION/phalcon.so; fi;
33+
- if [ -f $HOME/ext/$PHP_VERSION/phalcon.so ]; then cp $HOME/ext/$PHP_VERSION/phalcon.so $PHP_EXTENSION_DIR/phalcon.so; fi;
34+
- phpenv config-add $HOME/cphalcon/tests/_ci/phalcon.ini
35+
- phpenv config-add $TRAVIS_BUILD_DIR/tests/_ci/memcached.ini
36+
- cd $TRAVIS_BUILD_DIR
37+
- travis_retry composer install --prefer-dist --no-interaction
5338

5439
before_script:
55-
# Create database and user
5640
- echo 'CREATE DATABASE phosphorum CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root
5741
- echo "CREATE USER 'phosphorum'@'%' IDENTIFIED BY 'secret'" | mysql -u root
5842
- echo "GRANT ALL PRIVILEGES ON phosphorum.* TO 'phosphorum'@'%' WITH GRANT OPTION" | mysql -u root
5943
- cat schemas/forum.sql | mysql -u root phosphorum
6044
- cp ./tests/.env.travis .env
6145
- php -S 127.0.0.1:8000 -t public/ .htrouter.php >/dev/null 2>&1 &
62-
- sudo ulimit -c unlimited -S || true
6346

6447
script:
6548
- vendor/bin/phpcs
6649
- vendor/bin/codecept build
67-
# Run tests
6850
- vendor/bin/codecept run unit
6951
- vendor/bin/codecept run functional
7052
- vendor/bin/codecept run acceptance
@@ -80,8 +62,6 @@ notifications:
8062
addons:
8163
apt:
8264
packages:
83-
- gdb
84-
- re2c
8565
- beanstalkd
8666
- mysql-server-5.6
8767
- mysql-client-core-5.6

app/config/patreon.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/provider/Config/ServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class ServiceProvider extends AbstractServiceProvider
4848
'annotations',
4949
'email',
5050
'mailer',
51-
'patreon',
5251
'config',
5352
];
5453

app/views/partials/buttons.volt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<div class="nav navbar-nav navbar-right navbar-login">
2-
{%- if config.patreon is defined and config.patreon.enabled -%}
32
<div class="btn-group">
4-
<a class="btn btn-sm btn-default" href="https://www.patreon.com/bePatron?u={{ config.patreon.id }}" target="_blank">
3+
<a class="btn btn-sm btn-default" href="https://phalcon.link/fund" target="_blank">
54
<span class="p-ico"></span>
65
Support Us
76
</a>
87
</div>
9-
{% endif %}
108
<div class="btn-group">
119
{%- if session.get('identity') -%}
1210
{{- link_to(

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"phalcongelist/php-diff": "^2.0",
4545
"elasticsearch/elasticsearch": "^1.4",
4646
"phalcon/incubator": "~3.0",
47-
"phalcongelist/breadcrumbs": "^1.2",
47+
"phalcon/breadcrumbs": "^1.3",
4848
"league/flysystem-dropbox" : "^1.0",
4949
"egulias/email-validator": "^2.1",
5050
"google/recaptcha": "^1.1",
@@ -59,7 +59,7 @@
5959
"codeception/specify": "~0.4",
6060
"codeception/mockery-module": "^0.2",
6161
"squizlabs/php_codesniffer": "~2.7",
62-
"phalcongelist/dd": "^1"
62+
"phalcon/dd": "^1.1"
6363
},
6464
"suggest": {
6565
"ext-yaml": "*",

0 commit comments

Comments
 (0)