From c341fd873be0549959f03af9e4e0cd22f48fc501 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E0=BE=85=E0=BC=BB=20=C7=AC=C9=80=C4=A7=20=E0=BC=84?= =?utf8?q?=E0=BC=86=E0=BD=89?= Date: Sat, 22 Apr 2017 23:45:31 +0200 Subject: [PATCH] Shorten travis config file --- .travis.yml | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index a8249f5..d8516f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,41 +19,15 @@ env: - DB=mysql before_script: + - which phpunit + - phpunit --version - git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests - git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr - cp user/languages/fr/fr_FR.* user/languages - mysql -e 'create database IF NOT EXISTS yourls_tests;' - cp tests/yourls-tests-config-travis.php user/config.php - - | - # Export Composer's global bin dir to PATH - composer config --list --global - export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` - - | - # Install the specified version of PHPUnit depending on the PHP version: - case "$TRAVIS_PHP_VERSION" in - 7.1|7.0|hhvm) - echo "Using PHPUnit 5.7" - composer global require "phpunit/phpunit=5.7.*" - ;; - 5.6|5.5|5.4|5.3) - echo "Using PHPUnit 4.8" - composer global require "phpunit/phpunit=4.8.*" - ;; - *) - echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" - exit 1 - ;; - esac - - which phpunit - - phpunit --version script: phpunit --configuration ./tests/phpunit-travis.xml.dist -after_script: rm user/config.php - notifications: email: false - irc: - channels: - - "irc.freenode.org#YOURLS" - use_notice: true -- 2.45.0