Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #2

Merged
merged 1,757 commits into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1757 commits
Select commit Hold shift + click to select a range
1c17ec9
fix(model): restrict relation params check fixed
zsilbi Oct 16, 2020
c36b9e5
test(model): restricted relations with params
zsilbi Oct 16, 2020
669892b
test(model): test for error message
zsilbi Oct 16, 2020
b41482a
test(model): added delete test for issue
zsilbi Oct 17, 2020
930cc5c
test(application): added test for issue
zsilbi Oct 17, 2020
6c970e1
test(application): added test for issue
zsilbi Oct 17, 2020
8690fd5
test(application): added test for issue
zsilbi Oct 17, 2020
26c9367
test(model): fixed pgsql problem
zsilbi Oct 17, 2020
18230b2
test(model): update migration
zsilbi Oct 18, 2020
341d86a
test(model): fixed test
zsilbi Oct 18, 2020
ffa798d
test(model): test for issue
zsilbi Oct 18, 2020
f3bb03c
BREAKING CHANGE(database): Db\Adapter\AdapterInterface is modified
zsilbi Oct 20, 2020
00d7f5a
fix(model): added support check for default values
zsilbi Oct 20, 2020
f5539d9
docs: changelog
zsilbi Oct 20, 2020
7437dca
test(application): handling unknown numeric route
zsilbi Oct 17, 2020
2a3b386
test(application): fixed test
zsilbi Oct 17, 2020
23fa970
fix(router): removed numeric checks
zsilbi Oct 17, 2020
042ad00
test(router): added numeric handle test
zsilbi Oct 17, 2020
b86b1c1
test(router): added tests for Router::handle()
zsilbi Oct 20, 2020
c78612d
docs: changelog
zsilbi Oct 20, 2020
1d43c4d
#14904 - Revert changes
Jeckerson Oct 22, 2020
ec75023
#14904 - Skip tests
Jeckerson Oct 22, 2020
0564ce5
fix(session): adapters to use prefix options
zsilbi Oct 23, 2020
db781d5
test(session): test adapters prefix option
zsilbi Oct 23, 2020
73e76a0
docs: changelog
zsilbi Oct 23, 2020
3f193c8
#14968 - Add support of smallint in Postgresql
Jeckerson Oct 26, 2020
9b1f7f8
ci(macos): fix build on MacOS for PHP 7.4
zsilbi Oct 28, 2020
e61aa61
fix(codeception): use 4.1.8
zsilbi Oct 28, 2020
77a84a3
Merge branch '4.1.x' into #14968-pgsql-small-int
Jeckerson Oct 28, 2020
ddcaeec
Merge pull request #15187 from phalcon/#14968-pgsql-small-int
Jeckerson Oct 28, 2020
b5da175
test: fix autoloaded classes
zsilbi Oct 28, 2020
40a98c0
fix: typo
zsilbi Oct 28, 2020
1e7a700
fix: zephir optimizers
zsilbi Oct 28, 2020
c6fcec2
Revert "fix(codeception): use 4.1.8"
zsilbi Oct 29, 2020
8ba9cdf
fix: JWT test fixed
zsilbi Oct 29, 2020
0133a6a
test(model): added test for related property saving
zsilbi Oct 31, 2020
c2d8b24
fix(model): saving changed related records
zsilbi Oct 31, 2020
3f84ee2
test(model): modified test
zsilbi Oct 31, 2020
c881cfe
fix(model): modified logic
zsilbi Oct 31, 2020
5da7c9b
fix(model): rename method and variables
zsilbi Oct 31, 2020
97040e6
docs: changelog
zsilbi Oct 31, 2020
215f776
fix: segfault on PHP 7.3.23
zsilbi Oct 31, 2020
1df2950
ci: turn off dotreporter for mysql tests
zsilbi Oct 31, 2020
3b8dbb0
using latest Zephir - generate new version
niden Oct 31, 2020
db39843
updating the changelog and pear package file
niden Oct 31, 2020
88cc15e
generated optimized files for the version
niden Oct 31, 2020
4e69a93
minor correction to the style of the changelog
niden Oct 31, 2020
52a1be1
corrected reference to the changelog
niden Oct 31, 2020
e5b529d
fixing merge conflicts and regenerating build
niden Oct 31, 2020
81561d8
Merge pull request #15196 from phalcon/4.1.x
niden Oct 31, 2020
a102055
ci: fix windows builds
zsilbi Oct 31, 2020
1f4c94f
Merge pull request #15198 from phalcon/4.1.x
niden Oct 31, 2020
b6fa95e
sync backers
Arhell Nov 2, 2020
85d6cf4
Update CHANGELOG-4.1.md
chipco Nov 7, 2020
e629158
Merge pull request #15205 from chipco/patch-1
niden Nov 10, 2020
cb8e962
Fix max allowed version
remicollet Nov 10, 2020
3241d96
Merge pull request #15207 from remicollet/patch-2
niden Nov 10, 2020
7de101c
add github backer
Arhell Nov 17, 2020
5936be2
Merge pull request #15211 from Arhell/add-backer
ruudboon Nov 21, 2020
5d1ae3f
Fix build and test workflow
AlexNDRmac Nov 21, 2020
5f01963
Fix codecoverage workflow
AlexNDRmac Nov 21, 2020
ed9eba4
Fix setup env batch file
AlexNDRmac Nov 21, 2020
9aa61c3
Use powershell syntax
AlexNDRmac Nov 21, 2020
d865b00
Fix win CI tool powershell module syntax
AlexNDRmac Nov 21, 2020
31750ea
Setup ext-msgpack for macOS
AlexNDRmac Nov 21, 2020
2085629
Merge pull request #15217 from AlexNDRmac/buffix/github-actions-set-env
Jeckerson Nov 21, 2020
38e4e6d
remove github backer
Arhell Nov 21, 2020
92fe629
Merge pull request #15219 from Arhell/remove-backer
Jeckerson Nov 22, 2020
b81dddf
#15212 - Add test case with column option
Jeckerson Nov 22, 2020
eb02f46
#15212 - Enable test suite groups for test case
Jeckerson Nov 22, 2020
bf6ea3c
#15212 - Fix assert instance
Jeckerson Nov 22, 2020
3878e35
add github backer
Arhell Nov 22, 2020
523b539
Merge pull request #15221 from Arhell/add-backer
Jeckerson Nov 23, 2020
abe5c85
#15212 - Change signature of findFirst() method
Jeckerson Nov 28, 2020
a55e110
Remove deprecated xdebug ini config
Jeckerson Nov 28, 2020
a920cea
Merge pull request #15220 from Jeckerson/4.1.x
Jeckerson Nov 30, 2020
275f708
#15194 - Remove provide section in composer.json
Jeckerson Nov 30, 2020
922e311
Merge pull request #15224 from phalcon/#15194-composer-provide
Jeckerson Nov 30, 2020
d3f7473
remove github backer
Arhell Nov 30, 2020
aeda3eb
Merge pull request #15225 from Arhell/remove-backer
Jeckerson Nov 30, 2020
c959551
fix github backer
Arhell Dec 1, 2020
f32d443
Merge pull request #15227 from Arhell/fix-backer
Jeckerson Dec 1, 2020
8c776e4
remove github backer
Arhell Dec 5, 2020
e9031b5
Merge pull request #15231 from Arhell/remove-backer
Jeckerson Dec 5, 2020
b526479
Bump Zephir Parser version to 1.3.6
Jeckerson Dec 9, 2020
0fa6ec5
Merge pull request #15234 from phalcon/fix-ci
Jeckerson Dec 10, 2020
c64b222
test(logger): added logger test for psr log level
niden Dec 9, 2020
13b6cdc
fix(logger): corrected log level for PSR
niden Dec 9, 2020
9ff032a
fix(logger): corrections for the log level calculation
niden Dec 10, 2020
a0af1e7
fix(logger): updated changelog
niden Dec 10, 2020
91b4885
Merge pull request #15235 from phalcon/T15214-logger-log-psr
niden Dec 10, 2020
4e0f19e
Updated URLs
niden Jan 25, 2021
f131504
Updated URLs
niden Jan 25, 2021
8058283
add github backer
Arhell Feb 14, 2021
f9d9b4f
Merge pull request #15294 from Arhell/upd
Jeckerson Feb 18, 2021
987b0f2
Add Codecov badge to README
thomasrockhu Feb 23, 2021
339ac23
update backers
Arhell Feb 25, 2021
69d41b2
Merge pull request #15313 from Arhell/add
Jeckerson Feb 26, 2021
432276e
Added fixture for extending the JWT builder; Moved JWT tests to security
niden Mar 2, 2021
0091379
Necessary renames to abide with the namespace
niden Mar 2, 2021
c6c2696
setClaims is now protected
niden Mar 2, 2021
4599b09
Added test for extended class
niden Mar 2, 2021
613658c
Updated changelog
niden Mar 2, 2021
b2ce377
Merge pull request #15323 from phalcon/T15322-jwt-inheritance
niden Mar 2, 2021
c301d0b
Merge pull request #15309 from thomasrockhu/codecov-badge
niden Mar 2, 2021
f15a3ef
add backers
Arhell Mar 20, 2021
a67a0c7
Merge pull request #15337 from Arhell/add
Jeckerson Mar 20, 2021
d558dc6
#15186 - Update PHP version in composer.json
Jeckerson Feb 9, 2021
80588df
#15186 - Add docker files for PHP8 local development
Jeckerson Feb 9, 2021
f4d2bd3
#15186 - Remove deprecated C code from optimizers
Jeckerson Feb 9, 2021
568f452
#15186 - Fix SanitizeMultipleCest test
Jeckerson Feb 9, 2021
0e7c0c4
#15186 - Re-generate ext/ folder
Jeckerson Feb 9, 2021
9791bb0
#15186 - Update main CI config
Jeckerson Feb 10, 2021
3e8e435
#15186 - Remove prestissimo installation
Jeckerson Feb 10, 2021
027d5f0
#15186 - Generate build/php8 directory
Jeckerson Feb 10, 2021
a8831e4
#15186 - Adapt main CI config for PHP8 runs
Jeckerson Feb 10, 2021
3b5f76d
#15186 - Bump versions in package.xml
Jeckerson Feb 10, 2021
61bc483
#15186 - Remove deprecated macro 'TSRMLS_D'
Jeckerson Feb 10, 2021
0403580
#15186 - Update PHP version for build pecl
Jeckerson Feb 10, 2021
82492cb
#15186 - Update build/php8/ directory
Jeckerson Feb 10, 2021
c3e5c38
#15186 - Add build files for PHP8
Jeckerson Feb 10, 2021
c465680
#15186 - Update build files for PHP8
Jeckerson Feb 10, 2021
cb97f5d
#15186 - Add --ignore-platform-reqs for composer
Jeckerson Feb 10, 2021
f9b9e04
#15186 - Run all tests even if fail
Jeckerson Feb 10, 2021
27287f4
#15186 - Refactor PHP config files
Jeckerson Feb 10, 2021
1847449
#15186 - Remove 7.2 version from matrix
Jeckerson Feb 10, 2021
bd91073
#15186 - Remove '--ignore-platform-reqs' flag
Jeckerson Feb 10, 2021
c5afcaa
#15186 - Fix unit tests
Jeckerson Feb 10, 2021
852f30b
#15186 - Add .ci/run-tests.sh script to run all tests
Jeckerson Feb 11, 2021
71feddf
#15186 - Andd 7.3 and 7.4 docker files and update 8.0 docker file
Jeckerson Feb 11, 2021
fac1aa8
#15186 - Remove 7.3 docker image and its container
Jeckerson Feb 11, 2021
c191354
#15186 - Fix max connection error
Jeckerson Feb 11, 2021
4cfb457
#15186 - Remove PHP 7.3 from matrix
Jeckerson Feb 11, 2021
c289e08
#15186 - Bump min PHP version in pecl package.xml
Jeckerson Feb 11, 2021
7e9e53f
#15186 - Add 'pecl install memcached'
Jeckerson Feb 11, 2021
e1b374c
#15186 - Add pdo_mysql and pdo_pgsql extensions to PHP8 Dockerfile
Jeckerson Feb 11, 2021
0509588
#15186 - Fix messagesMessageConstructException() test
Jeckerson Feb 11, 2021
093ed16
#15186 - Add disabling of Alphablending
Jeckerson Feb 11, 2021
9c358a5
#15186 - Fix return type of Model::average()
Jeckerson Feb 11, 2021
4a0e892
#15186 - Remove deprecated 'context' from set_error_handler()
Jeckerson Feb 11, 2021
9bc3f47
#15186 - Adapt and fix tests
Jeckerson Feb 11, 2021
19bbbe4
#15186 - Re-generate ext/phalcon directory
Jeckerson Feb 11, 2021
00d61c7
#15186 - Add CHANGELOG-4.2.md
Jeckerson Feb 11, 2021
9df66bb
#15186 - Fix httpResponseConstructWithIncorrectDataType() test
Jeckerson Feb 11, 2021
2926e05
#15186 - Re-generate build/php8 directory
Jeckerson Feb 11, 2021
4f06c92
#15186 - Re-generate build/php7 directory
Jeckerson Feb 11, 2021
3805476
#15186 - Revert disabling of Alphablending
Jeckerson Feb 11, 2021
0ecfb0b
#15186 - Add version check for set_error_handler() calls
Jeckerson Feb 12, 2021
c14b5c9
Update Session/Manager to validate session IDs before starting session
davidofferman Mar 2, 2021
3458a81
Change from ctype_alnum to preg_match
davidofferman Mar 2, 2021
566a443
#15186 - Fix unit tests in PHP8
Jeckerson Mar 4, 2021
4d996c8
#15186 - Add "phalcon/ide-stubs" as dev requirement
Jeckerson Mar 4, 2021
2c7c248
#15186 - Optimize imports
Jeckerson Mar 5, 2021
384b607
#15186 - Bump ZEPHIR_VERSION to 0.13.0-alpha-3
Jeckerson Mar 5, 2021
d60903f
#15186 - Regenerate build/php8/ folder
Jeckerson Mar 5, 2021
dffa592
#15186 - Add include of ext/standard/php_session.h
Jeckerson Mar 5, 2021
98cb1a4
#15186 - Fix path of php_session.h and add include of psr headers
Jeckerson Mar 5, 2021
3268754
#15186 - Add 'psr' extension
Jeckerson Mar 5, 2021
9bf1fa5
#15186 - Fix code style [ci skip]
Jeckerson Mar 5, 2021
090c884
Revert "#15186 - Add 'psr' extension"
Jeckerson Mar 5, 2021
34fd281
#15186 - Add 'pecl install psr'
Jeckerson Mar 5, 2021
c254dc2
Revert "#15186 - Add 'pecl install psr'"
Jeckerson Mar 5, 2021
285f570
#15186 - Add output of modules
Jeckerson Mar 5, 2021
2fda242
#15186 - Add psr and phalcon extension in correct order
Jeckerson Mar 5, 2021
27060da
#15186 - Fix signature of Select::__construct()
Jeckerson Mar 5, 2021
079d7ec
#15186 - Add pecl packages
Jeckerson Mar 5, 2021
096431b
#15186 - Remove 'prestissimo'
Jeckerson Mar 5, 2021
ac982a3
#15186 - Add memcached and yaml pecl extensions
Jeckerson Mar 5, 2021
44940df
#15186 - Bump PHALCON_VERSION to 4.2.0
Jeckerson Mar 5, 2021
625e201
#15186 - Update codecoverage.yml
Jeckerson Mar 5, 2021
d75916a
#15186 - Update autoload-dev in composer.json
Jeckerson Mar 5, 2021
b379dd8
#15186 - Update composer.json
Jeckerson Mar 5, 2021
f37f59f
#15186 - Fix Integartion tests
Jeckerson Mar 5, 2021
d6e7e63
#15186 - Fix Database tests
Jeckerson Mar 5, 2021
bdc1a59
#15186 - Add sudo
Jeckerson Mar 5, 2021
4c0e474
#15186 - Add PHP_PECL_PSR_PATH env for Windows build
Jeckerson Mar 5, 2021
d98cfb3
#15186 - Add services for Mac builds and Integration Tests
Jeckerson Mar 5, 2021
682cde8
Revert "#15186 - Add services for Mac builds and Integration Tests"
Jeckerson Mar 5, 2021
fc89c6f
#15186 - Change version from '7.4' to '8.0'
Jeckerson Mar 5, 2021
b080d9d
#15186 - Reformat code in tests
Jeckerson Mar 5, 2021
1a2f210
#15186 - Add extension ini values
Jeckerson Mar 6, 2021
23d234a
#15186 - Move installation of PSR near phalcon extension build
Jeckerson Mar 6, 2021
ec87ce5
#15186 - Bump Zephir version to 0.13.0-beta-1
Jeckerson Mar 7, 2021
fefbcf2
#15186 - Add sudo
Jeckerson Mar 7, 2021
716cc96
Add PSR headers to CI
AlexNDRmac Mar 8, 2021
12b844e
Use explicit ubuntu version
AlexNDRmac Mar 8, 2021
ca4ab16
Fix git clone command, desable other jobs [ci skip]
AlexNDRmac Mar 8, 2021
320957e
Amend disable unix CI [ci skip]
AlexNDRmac Mar 8, 2021
7526834
test only on Windows [ci skip]
AlexNDRmac Mar 8, 2021
8c6653d
Revert disabled unix build
AlexNDRmac Mar 8, 2021
2256b65
Fix CD path cmd
AlexNDRmac Mar 8, 2021
83ce524
Move PSR headers install befor Phalcon build
AlexNDRmac Mar 8, 2021
7de0be0
Use cms as shell for PSR headers install
AlexNDRmac Mar 8, 2021
698d093
Fix visual studio prefix for php-devel pack
AlexNDRmac Mar 8, 2021
8a14373
Change configure command
AlexNDRmac Mar 8, 2021
19ce649
Replace build cmds to simple copy for PSR
AlexNDRmac Mar 9, 2021
a6b5d5d
#15186 - Add enabling of memcached for 7.4
Jeckerson Mar 13, 2021
b094453
Build PSR from sources
AlexNDRmac Mar 14, 2021
6b56bff
Fix PSR path and configure options
AlexNDRmac Mar 14, 2021
810aa9f
Split PSR build to parts
AlexNDRmac Mar 14, 2021
41dae7e
Revert to win 2106 image
AlexNDRmac Mar 14, 2021
a88f446
Fix pecl PSR set path
AlexNDRmac Mar 14, 2021
f9a4f03
Adjusted changelog names
niden Mar 24, 2021
35c7079
fix(storage): correction to the igbinary serializer for is_numeric
niden Mar 26, 2021
6c40f24
test(behavior): corrected namespace
niden Mar 26, 2021
f8ab04e
fix(storage): corrected test
niden Mar 26, 2021
2488ced
fix(storage): igbinary serializer handles booleans now
niden Mar 26, 2021
f45bda7
fix(build): corrected pecl build (action) to use the latest changelog
niden Mar 26, 2021
477b6a5
Merge pull request #15342 from niden/T15240-igbinary-serialize-numbers
niden Mar 26, 2021
f49e176
Renaming folder to make templates work for issues
niden Mar 26, 2021
e5bf68f
Renaming folder to make templates work for issues
niden Mar 26, 2021
fe2ab0f
fix #15252 - compare 000012345 and 12345
Izopi4a Mar 27, 2021
e7cb50e
Merge pull request #15347 from Izopi4a/fix-15252
niden Mar 27, 2021
aa68dbe
update declarions of function getEventsManager() to allow null return
Izopi4a Mar 27, 2021
17c9105
add backer
Arhell Mar 27, 2021
b6c97f0
Merge pull request #15349 from Arhell/add
Jeckerson Mar 28, 2021
fe2999f
Bump version to 5.0.0 in package.xml
Jeckerson Mar 28, 2021
29c14e6
Bump version to 5.0.0-alpha.1 in Version.zep
Jeckerson Mar 28, 2021
2837d82
Cache adapters returning null when the data is emptry array
Izopi4a Mar 28, 2021
2c1f69b
Merge pull request #15348 from Izopi4a/fix-15010
niden Mar 28, 2021
44b1f7a
docs(changelog): added issue link in the changelog
niden Mar 28, 2021
6c299a5
fix(mvc): removed methods with underscores (psr12)
niden Mar 28, 2021
d3b230c
fix(profiler): removed php 7.2 related code from the profiler
niden Mar 28, 2021
baf4b92
fix(cookie): removed php 7.2 code - worked a bit on sameSite
niden Mar 28, 2021
e6cca68
fix(cookie): changed the constructor to allow for sameSite
niden Mar 28, 2021
8f0c051
fix(changelog): updated the changelog
niden Mar 28, 2021
28d79ad
fix(cookie): corrected the sameSite attribute and constructor
niden Mar 28, 2021
0e40778
fix(cookie): corrected httponly to be optional
niden Mar 28, 2021
3f5df3f
fix(cookie): adjusting tests
niden Mar 28, 2021
b49c89a
fix(cookie): corrected samesite default parameter
niden Mar 28, 2021
36a6c5b
fix(cookie): corrected array element name for samesite
niden Mar 28, 2021
546893c
fix(cookie): more adjustments for samesite
niden Mar 28, 2021
0ca3ca3
build(docker): added xdebug in the containersy
niden Mar 28, 2021
01d24f9
Merge pull request #15351 from niden/T15345-underscore-methods
niden Mar 28, 2021
ee26911
Merge branch '5.0.x' into fix-15125
niden Mar 28, 2021
084e9c5
Merge pull request #15350 from Izopi4a/fix-15125
niden Mar 28, 2021
8fca587
update ValidationInterface - add dockblock
Izopi4a Mar 29, 2021
7fac902
fixing Flash\Session::has()
Izopi4a Mar 30, 2021
368458d
Merge pull request #15352 from Izopi4a/fix-14946
niden Mar 31, 2021
353e345
Merge pull request #15353 from Izopi4a/fix-15204
niden Mar 31, 2021
08f3d6f
Using latest zephir
niden Mar 31, 2021
7b29afd
Generating optimized files
niden Mar 31, 2021
c1c51b4
Updating version in relevant build files
niden Mar 31, 2021
fbbd34c
corrected spacing issue
niden Mar 31, 2021
54e5851
Changing version format for PECL
niden Mar 31, 2021
c746d1f
Changing the version again for PECL
niden Mar 31, 2021
348423d
Fixing version again for PECL
niden Mar 31, 2021
49bec77
phpcs
niden Mar 31, 2021
46a7549
Fixing changelog
niden Mar 31, 2021
b08eab7
Merge pull request #15357 from phalcon/5.0.x
niden Mar 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
63 changes: 49 additions & 14 deletions .ci/install-zephir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,65 @@

: "${ZEPHIR_PARSER_VERSION:=master}"
: "${ZEPHIR_VERSION:=master}"
: "${DEFAULT_COMPOSER_FLAGS:=}"

# Install zephir_parser
git clone -b "$ZEPHIR_PARSER_VERSION" --depth 1 -q https://github.com/phalcon/php-zephir-parser
cd php-zephir-parser || exit 1
pushd php-zephir-parser 1>/dev/null || exit 1

# shellcheck disable=SC2091
$(phpenv which phpize)
# Select proper paths of PHP tools
if command -v phpenv >/dev/null 2>&1; then
inidir="$(phpenv prefix)/etc/conf.d"
phpize="$(phpenv which phpize)"
phpconfig="$(phpenv which php-config)"
else
inidir="$(php -i | grep 'Scan this dir' | grep -oE '/.*')"
phpize="$(command -v phpize 2>/dev/null)"
phpconfig="$(command -v php-config 2>/dev/null)"
fi

# Executes the command in a subshell.
# It inherits everything from the calling script but does not
# transmit any change back.
(eval "$phpize")

./configure \
--silent \
--with-php-config="$phpconfig" \
--enable-zephir-parser \
CFLAGS="-O2 -g"

./configure --silent --with-php-config="$(phpenv which php-config)" --enable-zephir_parser
make --silent -j"$(getconf _NPROCESSORS_ONLN)"
make --silent install
echo 'extension="zephir_parser.so"' > "$(phpenv prefix)/etc/conf.d/zephir_parser.ini"

# Install zephir
if [[ ! $ZEPHIR_VERSION =~ ^(master|development)$ ]]
then
# GitHub Actions requires sudo
if [ "$GITHUB_ACTIONS" == "true" ]; then
sudo make --silent install || exit 1
echo 'extension="zephir_parser.so"' | sudo tee "$inidir/zephir_parser.ini"
else
make --silent install || exit 1
echo 'extension="zephir_parser.so"' > "$inidir/zephir_parser.ini"
fi

popd 1>/dev/null || exit 1

mkdir -p "$HOME/bin"
if [[ ! $ZEPHIR_VERSION =~ ^(master|development)$ ]]; then
wget \
--no-clobber \
-O "$HOME/bin/zephir" \
"https://github.com/phalcon/zephir/releases/download/$ZEPHIR_VERSION/zephir.phar"
chmod +x "$HOME/bin/zephir"
else
git clone -b "$ZEPHIR_VERSION" --depth 1 -q https://github.com/phalcon/zephir
cd zephir || exit 1
eval "composer install $DEFAULT_COMPOSER_FLAGS"
ln -s "$(pwd)/zephir" "$HOME/bin/zephir"
exit 0
fi

git clone -b "$ZEPHIR_VERSION" --depth 1 -q https://github.com/phalcon/zephir
pushd zephir 1>/dev/null || exit 1

# Executes the command in a subshell.
# It inherits everything from the calling script but does not
# transmit any change back.
(eval "composer install $DEFAULT_COMPOSER_FLAGS")

ln -s "$(pwd)/zephir" "$HOME/bin/zephir"

popd 1>/dev/null || exit 1
16 changes: 16 additions & 0 deletions .ci/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <[email protected]>
#
# For the full copyright and license information, please view the
# LICENSE.txt file that was distributed with this source code.

php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter unit
php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter cli
php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter integration
php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter database -g common
php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter database --env mysql -g mysql
php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter database --env sqlite -g sqlite
php -d extension=ext/modules/phalcon.so vendor/bin/codecept run --ext DotReporter database --env pgsql -g pgsql
20 changes: 10 additions & 10 deletions .ci/setup-dbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
# LICENSE.txt file that was distributed with this source code.

(>&1 echo "Create MySQL database...")
mysql -u root -e "CREATE DATABASE IF NOT EXISTS phalcon_test charset=utf8mb4 collate=utf8mb4_unicode_ci;"
mysql -u root phalcon_test < ./tests/_data/assets/db/schemas/mysql_schema.sql
mysql -u root -e "CREATE DATABASE IF NOT EXISTS phalcon charset=utf8mb4 collate=utf8mb4_unicode_ci;"
#mysql -u root phalcon_test < ./tests/_data/assets/db/schemas/mysql_schema.sql
(>&1 echo "Done.")

(>&1 echo "Create PostgreSQL database...")
psql -c 'create database phalcon_test;' -U postgres
psql -U postgres phalcon_test -q -f ./tests/_data/assets/db/schemas/postgresql_schema.sql
psql -c 'create database phalcon;' -U postgres
#psql -U postgres phalcon_test -q -f ./tests/_data/assets/db/schemas/postgresql_schema.sql
(>&1 echo "Done.")

(>&1 echo "Create SQLite database...")
sqlite3 ./tests/_output/phalcon_test.sqlite < ./tests/_data/assets/db/schemas/sqlite_schema.sql
(>&1 echo "Done.")
#(>&1 echo "Create SQLite database...")
#sqlite3 ./tests/_output/phalcon_test.sqlite < ./tests/_data/assets/db/schemas/sqlite_schema.sql
#(>&1 echo "Done.")

(>&1 echo "Create translations SQLite database...")
sqlite3 ./tests/_output/translations.sqlite < ./tests/_data/assets/db/schemas/sqlite_translations_schema.sql
(>&1 echo "Done.")
#(>&1 echo "Create translations SQLite database...")
#sqlite3 ./tests/_output/translations.sqlite < ./tests/_data/assets/db/schemas/sqlite_translations_schema.sql
#(>&1 echo "Done.")

wait
41 changes: 41 additions & 0 deletions .ci/vsenv.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@echo off
rem This file is part of Phalcon.
rem
rem (c) Phalcon Team <[email protected]>
rem
rem For the full copyright and license information, please view
rem the LICENSE file that was distributed with this source code.
cls

rem For more see: https://github.com/microsoft/vswhere/wiki/Find-VC
rem
rem For the software installed on GitHub-hosted runners see:
rem https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
rem
echo "Find VC..."
SET VSWHERE="C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere"

for /f "usebackq tokens=*" %%i in (`%VSWHERE% -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
set InstallDir=%%i
)

if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
echo "Found %InstallDir%\Common7\Tools\vsdevcmd.bat"
call "%InstallDir%\Common7\Tools\vsdevcmd.bat" %*
) else "VC not found"

echo "------------- phpsdk-starter ---------------------------"
call "%PHP_SDK_PATH%\phpsdk-vs16-%PHP_ARCH%.bat"

echo "------------- phpsdk_setvars ---------------------------"
call "%PHP_SDK_PATH%\bin\phpsdk_setvars.bat"

rem Loop over all environment variables and make them global using set-env.
rem
rem See: https://help.github.com/en/articles/development-tools-for-github-actions#set-an-environment-variable-set-env
rem See: https://stackoverflow.com/questions/39183272/loop-through-all-environmental-variables-and-take-actions-depending-on-prefix
setlocal
for /f "delims== tokens=1,2" %%a in ('set') do (
powershell -Command "& {Write-Output '%%a=%%b' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append;}"
)
endlocal
Loading