From 0f704900f4ea5b8cfdd026f9082d45ce7e6d27c9 Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Wed, 10 Oct 2018 14:55:18 +0200 Subject: [PATCH] Added kernel 1.13 tests on Travis --- .travis.yml | 2 ++ bin/.travis/prepare_unittest.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index ccbe6b9d..38147953 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,8 @@ matrix: env: TEST_CONFIG="phpunit-integration-legacy-empty-db.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/testdb" - php: 7.1 env: TEST_CONFIG="phpunit-integration-legacy-empty-db.xml" DB="mysql" DATABASE="mysql://root@localhost/testdb" + - php: 7.0 + env: TEST_CONFIG="phpunit.xml" COMPOSER_REQUIRE="ezsystems/ezpublish-kernel:^6.13.6@dev" # test only master (+ Pull requests) branches: diff --git a/bin/.travis/prepare_unittest.sh b/bin/.travis/prepare_unittest.sh index 046ad58a..dd16bc35 100755 --- a/bin/.travis/prepare_unittest.sh +++ b/bin/.travis/prepare_unittest.sh @@ -24,3 +24,6 @@ if [ "$DB" = "mysql" ] ; then mysql -e "CREATE DATABASE IF NOT EXISTS testdb DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;" -uroot fi if [ "$DB" = "postgresql" ] ; then psql -c "CREATE DATABASE testdb;" -U postgres ; psql -c "CREATE EXTENSION pgcrypto;" -U postgres testdb ; fi + +if [ "$COMPOSER_REQUIRE" != "" ] ; then composer require --no-update $COMPOSER_REQUIRE ; fi +#travis_retry composer update --no-progress --no-interaction $COMPSER_ARGS