-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1600 from phalcon/development
0.10.5
- Loading branch information
Showing
28 changed files
with
319 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
language: php | ||
|
||
dist: trusty | ||
# Change to `true' to enable debug mode | ||
sudo: false | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
|
||
git: | ||
depth: 1 | ||
|
@@ -20,75 +24,118 @@ env: | |
- LIBRARY_PATH="$TRAVIS_BUILD_DIR/build/lib":$LIBRARY_PATH | ||
- C_INCLUDE_PATH="$TRAVIS_BUILD_DIR/build/include" | ||
- CFLAGS="-g3 -O0 -Wall -fvisibility=hidden" | ||
- ZEPHIR_PARSER_VERSION="v1.1.0" | ||
- REPORT_EXIT_STATUS=1 | ||
- PATH="${HOME}/bin:${PATH}" | ||
matrix: | ||
- CC="ccache gcc" | ||
- CC="clang" | ||
- CC="gcc" ZEPHIR_PARSER_VERSION="development" | ||
- CC="gcc" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
- CC="clang" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
- CC="gcc" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="development" | ||
- CC="clang" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="development" | ||
- CC="gcc" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
- CC="clang" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
- CC="gcc" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="development" | ||
- CC="clang" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="development" | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
- php: 7.2 | ||
exclude: | ||
- env: CC="gcc" | ||
compiler: clang | ||
- env: CC="clang" | ||
compiler: gcc | ||
include: | ||
- env: CC="ccache gcc" | ||
- env: CC="gcc" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
php: nightly | ||
compiler: gcc | ||
- env: CC="clang" | ||
- env: CC="gcc" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
php: nightly | ||
compiler: clang | ||
- env: CC="gcc" ZEPHIR_PARSER_VERSION="development" | ||
compiler: gcc | ||
- env: CC="gcc" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="development" | ||
php: nightly | ||
compiler: gcc | ||
- env: CC="gcc" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="development" | ||
php: nightly | ||
compiler: gcc | ||
- env: CC="clang" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
php: nightly | ||
compiler: clang | ||
- env: CC="clang" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="v1.1.1" | ||
php: nightly | ||
compiler: clang | ||
- env: CC="clang" RE2C_VERSION="0.13.6" ZEPHIR_PARSER_VERSION="development" | ||
php: nightly | ||
compiler: clang | ||
- env: CC="clang" RE2C_VERSION="1.0.3" ZEPHIR_PARSER_VERSION="development" | ||
php: nightly | ||
compiler: clang | ||
|
||
cache: | ||
apt: true | ||
ccache: true | ||
timeout: 691200 | ||
timeout: 604800 | ||
directories: | ||
- vendor | ||
- $HOME/.ccache | ||
- $HOME/.composer/cache | ||
- $HOME/.local/opt/re2c | ||
- $HOME/.cache/re2c | ||
|
||
before_install: | ||
- if [[ ! -z "${GH_TOKEN}" ]]; then composer config github-oauth.github.com ${GH_TOKEN}; echo "Configured Github token"; fi; | ||
|
||
install: | ||
- composer --prefer-source install | ||
- bash unit-tests/ci/install_zephir_parser.sh | ||
- bash ./unit-tests/ci/install-re2c $RE2C_VERSION | ||
- bash ./unit-tests/ci/install_zephir_parser.sh | ||
- ./install | ||
|
||
before_script: | ||
#- $CC --version | ||
- $(phpenv which php) compiler.php help | ||
- $(phpenv which php) compiler.php generate | ||
- $(phpenv which php) compiler.php stubs | ||
- $(phpenv which php) compiler.php api | ||
- (cd ext; $(phpenv which phpize) && ./configure --silent --with-php-config=$(phpenv which php-config) --enable-test && make -j"$(getconf _NPROCESSORS_ONLN)" && make --silent install && phpenv config-add ../unit-tests/ci/test.ini) | ||
#- ls -1 `$(phpenv which php-config) --extension-dir` | ||
#- $(phpenv which php) -m | ||
#- phpenv versions | ||
- ulimit -c unlimited || true | ||
- $CC --version | ||
# Uncomment to setting core dump | ||
#- echo '/tmp/core_%e.%p' | sudo tee /proc/sys/kernel/core_pattern &> /dev/null | ||
- sudo chmod +s $(which gdb) | ||
|
||
script: | ||
- echo 'variables_order=EGPCS' >> "$(phpenv root)/versions/$(phpenv version-name)/etc/php.ini" | ||
- vendor/bin/phpcs --standard=PSR2 --report=emacs --extensions=php --warning-severity=0 Library/ unit-tests/Extension/ unit-tests/Zephir/ | ||
- valgrind --read-var-info=yes --error-exitcode=1 --fullpath-after= --track-origins=yes --leak-check=full ./unit-tests/phpunit --not-exit -c phpunit.xml.dist --debug unit-tests/ | ||
- | | ||
valgrind \ | ||
--read-var-info=yes \ | ||
--error-exitcode=1 \ | ||
--fullpath-after= \ | ||
--track-origins=yes \ | ||
--leak-check=full \ | ||
--run-libc-freeres=no \ | ||
./unit-tests/phpunit \ | ||
--not-exit \ | ||
-c phpunit.xml.dist \ | ||
--debug \ | ||
unit-tests/ | ||
- $(phpenv which php) unit-tests/microbench.php | ||
|
||
after_success: | ||
- if [[ ! -z "${CODECOV_TOKEN}" ]]; then bash <(curl -s https://codecov.io/bash); fi; | ||
|
||
after_failure: | ||
- ./unit-tests/ci/after_failure.sh | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: always | ||
# Uncomment to debug core dump | ||
# - ./unit-tests/ci/after_failure.sh | ||
- $(phpenv which php) -m | ||
- $(phpenv which php) -i | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- re2c | ||
- valgrind | ||
- gdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Oops, something went wrong.