Skip to content

Commit 75495f4

Browse files
committed
Added short build support for PHP-nightly
1 parent f6651b6 commit 75495f4

File tree

2 files changed

+35
-15
lines changed

2 files changed

+35
-15
lines changed

.travis.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,40 @@ before_install:
3131
# Memcached is not yet available for PHP8 (hasn't been updated since 2019): https://pecl.php.net/package/memcached
3232
# Memcache however seems to be compatible with PHP 7 and 8: https://pecl.php.net/package/memcache
3333
#
34-
- ./bin/ci/scripts/install_arangodb.sh;
35-
- ./bin/ci/scripts/install_ssdb.sh;
36-
- ./bin/ci/scripts/install_couchdb.sh;
37-
- ./bin/ci/scripts/install_couchbase.sh;
38-
- ./bin/ci/scripts/setup_mongodb.sh
39-
- ./bin/ci/scripts/setup_gcp.sh;
40-
- pecl channel-update pecl.php.net;
41-
- yes | pecl install -f grpc-stable | grep -v --line-buffered "/tmp/pear/install/grpc"; # This pecl install is partially muted due to too much output written
42-
- yes | pecl install -f mongodb-stable;
43-
- yes | pecl install -f apcu-stable || true;
44-
- yes | pecl install -f memcache;
45-
- yes | pecl install -f couchbase-stable;
46-
- phpenv config-add bin/ci/php_common.ini;
34+
# - ./bin/ci/scripts/install_arangodb.sh;
35+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_arangodb.sh || echo \"Arangodb install ignored on nightly\""
36+
# - ./bin/ci/scripts/install_ssdb.sh;
37+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_ssdb.sh || echo \"SSDB install ignored on nightly\""
38+
# - ./bin/ci/scripts/install_couchdb.sh;
39+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_couchdb.sh || echo \"Couchdb install ignored on nightly\""
40+
# - ./bin/ci/scripts/install_couchbase.sh;
41+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_couchbase.sh || echo \"Couchbase install ignored on nightly\""
42+
# - ./bin/ci/scripts/setup_mongodb.sh
43+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/setup_mongodb.sh || echo \"Setup Mongodb ignored on nightly\""
44+
# - ./bin/ci/scripts/setup_gcp.sh;
45+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/setup_gcp.sh || echo \"GCP setup ignored on nightly\""
46+
# - pecl channel-update pecl.php.net;
47+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && pecl channel-update pecl.php.net || echo \"PECL Channel update ignored on nightly\""
48+
# - yes | pecl install -f grpc-stable | grep -v --line-buffered "/tmp/pear/install/grpc"; # This pecl install is partially muted due to too much output written
49+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f grpc-stable | grep -v --line-buffered \"/tmp/pear/install/grpc\" || echo \"PECL GRPC install ignored on nightly\""
50+
# - yes | pecl install -f mongodb-stable;
51+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f mongodb-stable || echo \"PECL Mongodb install ignored on nightly\""
52+
# - yes | pecl install -f apcu-stable || true;
53+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | (pecl install -f apcu-stable || true) || echo \"PECL Apcu install ignored on nightly\""
54+
# - yes | pecl install -f memcache;
55+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f couchbase-stable || echo \"PECL Memcache install ignored on nightly\""
56+
# - yes | pecl install -f couchbase-stable;
57+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f couchbase-stable || echo \"PECL Couchbase install ignored on nightly\""
58+
# - phpenv config-add bin/ci/php_common.ini;
59+
- phpenv config-add bin/ci/php_common.ini
60+
4761
- phpenv config-rm xdebug.ini
4862
install:
49-
- ./bin/ci/scripts/install_dependencies.sh
63+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_dependencies.sh || ./bin/ci/scripts/install_dependencies_lite.sh"
64+
5065

5166
script:
5267
- ./vendor/bin/phpcs lib/ --report=summary
5368
- ./vendor/bin/phpmd lib/ ansi phpmd.xml
54-
- ./vendor/bin/phpstan analyse lib/ -l 2 -c phpstan.neon 2>&1
69+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./vendor/bin/phpstan analyse lib/ -l 2 -c phpstan.neon 2>&1 || ./vendor/bin/phpstan analyse lib/ -l 2 -c phpstan_lite.neon 2>&1"
5570
- php -f ./bin/ci/run_tests.php
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
composer self-update
4+
composer validate
5+
composer install

0 commit comments

Comments
 (0)