Skip to content
Permalink
Browse files

Cleaned up build on Travis CI [skip appveyor]

  • Loading branch information...
sergeyklay committed Sep 4, 2019
1 parent 61eade2 commit e30d10e40e4d178ab6a08562bd0534aa9cd69e18
Showing with 7 additions and 163 deletions.
  1. +2 −2 .ci/after-failure.sh
  2. +0 −8 .ci/export-variables.sh
  3. +2 −2 .ci/install-php-extensions.sh
  4. +0 −86 .ci/install-re2c.sh
  5. +1 −1 .ci/install-zephir.sh
  6. +0 −58 .ci/pear-setup.sh
  7. +2 −6 .travis.yml
@@ -31,7 +31,7 @@ then
fi

# for some reason Ubuntu 18.04 on Travis CI doesn't install gdb
function install_gcc() {
function install_gdb() {
if [ "${CI}" = "true" ] && [ "$(command -v gdb 2>/dev/null)" = "" ]
then
(>&1 echo "Install gdb...")
@@ -40,7 +40,7 @@ function install_gcc() {
}

for i in /tmp/core.php.*; do
install_gcc
install_gdb
(>&1 printf "Found core dump file: %s\\n\\n" "$i")
gdb -q "$(phpenv which php)" "$i" <<EOF
set pagination 0
@@ -13,11 +13,3 @@ source ./tests/_ci/environment

# shellcheck disable=SC2046
export $(cut -d= -f1 tests/_ci/environment)

# Export build environment variables
PHP_MAJOR="$(php -r 'echo phpversion();' | cut -d '.' -f 1)"
PHP_MINOR="$(php -r 'echo phpversion();' | cut -d '.' -f 2)"
PHP_VERNUM="$(php-config --vernum)"
PHP_PEAR_PHP_BIN=$(phpenv which php)

export PHP_MAJOR PHP_MINOR PHP_VERNUM PHP_PEAR_PHP_BIN
@@ -11,8 +11,8 @@
# -u Treat unset variables as an error when substituting.
set -eu

PHP_INI="$(phpenv root)/versions/$(phpenv version-name)/etc/php.ini"
PHP_CONF_D="$(phpenv root)/versions/$(phpenv version-name)/etc/conf.d"
PHP_INI="$(phpenv prefix)/etc/php.ini"
PHP_CONF_D="$(phpenv prefix)/etc/conf.d"

(>&1 echo 'Install apcu extension ...')
printf "\\n" | pecl install --force apcu_bc 1> /dev/null

This file was deleted.

@@ -20,7 +20,7 @@ $(phpenv which phpize)
./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 root)/versions/$(phpenv version-name)/etc/conf.d/zephir_parser.ini"
echo 'extension="zephir_parser.so"' > "$(phpenv prefix)/etc/conf.d/zephir_parser.ini"

# Install zephir
if [[ ! $ZEPHIR_VERSION =~ ^(master|development)$ ]]

This file was deleted.

@@ -27,8 +27,6 @@ cache:
timeout: 604800
directories:
- ${HOME}/.composer/cache
- ${HOME}/pear
- ${HOME}/.local/opt

services:
- mysql
@@ -42,7 +40,6 @@ env:
- CC="gcc"
- ZEPHIR_VERSION="0.12.2"
- ZEPHIR_PARSER_VERSION="v1.3.1"
- RE2C_VERSION="1.1.1"
- REPORT_COVERAGE=1
- PATH="${HOME}/.composer/vendor/bin:${PATH}"
- TRAVIS_COMMIT_LOG="$(git log --format=fuller -5)"
@@ -60,6 +57,7 @@ before_install:
[ -d ~/bin ] || mkdir ~/bin
export DEFAULT_COMPOSER_FLAGS=("--no-interaction" "--no-ansi" "--no-progress" "--no-suggest")
export PHP_PEAR_PHP_BIN="$(phpenv which php)"
# Hide "You are in 'detached HEAD' state" message
git config --global advice.detachedHead false
@@ -68,16 +66,14 @@ before_install:

install:
- .ci/setup-dbs.sh
- .ci/pear-setup.sh
- .ci/install-re2c.sh
- .ci/install-zephir.sh
- .ci/install-php-extensions.sh
- travis_retry composer install ${DEFAULT_COMPOSER_FLAGS[*]}

before_script:
- |
# Setting up Travis' PHP
cat .ci/travis.ini >> "$(phpenv root)/versions/$(phpenv version-name)/etc/conf.d/travis.ini"
cat .ci/travis.ini >> "$(phpenv prefix)/etc/conf.d/travis.ini"
if [ "$(php-config --vernum)" -ge "70400" ]
then
export REPORT_COVERAGE=0

0 comments on commit e30d10e

Please sign in to comment.
You can’t perform that action at this time.