@@ -50,14 +50,15 @@ services:
50
50
- redis-server
51
51
52
52
before_install :
53
- - pwd; ls -al; ls -al .github;
53
+ - ls -al .github;
54
54
- stty cols 120
55
55
- mkdir /tmp/slapd
56
56
- slapd -f src/Symfony/Component/Ldap/Tests/Fixtures/conf/slapd.conf -h ldap://localhost:3389 &
57
57
- PHP=$TRAVIS_PHP_VERSION
58
58
# Matrix lines for intermediate PHP versions are skipped for pull requests
59
59
- if [[ ! $deps && ! $PHP = ${MIN_PHP%.*} && ! $PHP = hhvm* && $TRAVIS_PULL_REQUEST != false ]]; then deps=skip; skip=1; fi
60
60
# A sigchild-enabled-PHP is used to test the Process component on the lowest PHP matrix line
61
+ - ls -al .github;
61
62
- if [[ ! $deps && $PHP = ${MIN_PHP%.*} && ! -d php-$MIN_PHP/sapi ]]; then wget http://museum.php.net/php5/php-$MIN_PHP.tar.bz2 -O - | tar -xj; (cd php-$MIN_PHP; ./configure --enable-sigchild --enable-pcntl; make -j2); fi
62
63
- if [[ ! $PHP = hhvm* ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini;
10000
fi
63
64
- if [[ ! $skip ]]; then echo date.timezone = Europe/Paris >> $INI_FILE; fi
@@ -74,29 +75,38 @@ before_install:
74
75
- if [[ ! $skip && ! $PHP = hhvm* ]]; then echo extension = ldap.so >> $INI_FILE; fi
75
76
- if [[ ! $skip && ! $PHP = hhvm* ]]; then echo extension = redis.so >> $INI_FILE; fi;
76
77
- if [[ ! $skip && ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
78
+ - ls -al .github;
77
79
- if [[ ! $skip ]]; then [ -d ~/.composer ] || mkdir ~/.composer; cp .composer/* ~/.composer/; fi
78
80
- if [[ ! $skip ]]; then export PHPUNIT=$(readlink -f ./phpunit); fi
79
81
- if [[ ! $skip ]]; then ldapadd -h localhost:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/base.ldif; fi
80
82
- if [[ ! $skip ]]; then ldapadd -h localhost:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/fixtures.ldif; fi
83
+ - ls -al .github;
81
84
82
85
install :
86
+ - ls -al .github;
83
87
- if [[ ! $skip && $deps ]]; then cp composer.json composer.json.orig; fi
84
88
- if [[ ! $skip && $deps ]]; then echo -e '{\n"require":{'"$(grep phpunit-bridge composer.json)"'"php":"*"},"minimum-stability":"dev"}' > composer.json; fi
89
+ - ls -al .github;
85
90
- if [[ ! $skip ]]; then COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi
86
91
# Create local composer packages for each patched components and reference them in composer.json files when cross-testing components
92
+ - ls -al .github;
87
93
- if [[ ! $skip && $deps ]]; then php .github/build-packages.php HEAD^ $COMPONENTS; fi
88
94
- if [[ ! $skip && $deps ]]; then mv composer.json composer.json.phpunit; mv composer.json.orig composer.json; fi
89
95
- if [[ ! $skip && ! $deps ]]; then php .github/build-packages.php HEAD^ src/Symfony/Bridge/PhpUnit; fi
96
+ - ls -al .github;
90
97
# For the master branch when deps=high, the version before master is checked out and tested with the locally patched components
91
98
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//); else SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*'); fi
92
99
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi
100
+ - ls -al .github;
93
101
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number than the next one
94
102
- if [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]]; then LEGACY=,legacy; fi
95
103
- export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
96
104
- if [[ ! $skip && $deps ]]; then export SYMFONY_DEPRECATIONS_HELPER=weak; fi
105
+ - ls -al .github;
97
106
- if [[ ! $skip && $deps ]]; then mv composer.json.phpunit composer.json; fi
98
107
- if [[ ! $skip ]]; then composer update; fi
99
108
- if [[ ! $skip ]]; then ./phpunit install; fi
109
+ - ls -al .github;
100
110
- if [[ ! $skip && ! $PHP = hhvm* ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi
101
111
- if [[ $IMAGE_DRIVER = imagick ]]; then pwd; ls -al; ls -al .github; .github/imagick.sh $INI_FILE; fi
102
112
- if [[ $IMAGE_DRIVER = gmagick ]]; then pwd; ls -al; ls -al .github; .github/gmagick.sh $TRAVIS_PHP_VERSION $INI_FILE; fi
0 commit comments