Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-04-19 16:52:29 +0300
committerGitHub <noreply@github.com>2020-04-19 16:52:29 +0300
commit7e6b13cfd9207adfd2ab0e3d39d0d3b8b17bb3ea (patch)
treec939395ab75eb1d2df66c352186f291f0f870d3f /.travis.yml
parent36a3729bbe0c70175eeee61dbf23f3395800dfe9 (diff)
Run tests on bionic distribution & run AllTests with PHP 7.4 (#15720)
* run tests on php 7.4 / xenial * composer update * fix lfs check * adjust travis.yml * adds distribution param * update submodule * update travis.yml * fix icon tests * Fix array access error on PHP 7.4 * fix test * avoid usage of deprecated assertArraySubset * convert expectedException annotations * avoid error on php 7.4 * Use assertion instead of conditional expection * add separat expected test result asserialize output changed for PHP7.4 * updates expected ui files * fix ui test * run UI tests on xenial dist * updates expected ui files * Update core/DataTable/Renderer.php * updates expected UI files * submodule update
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 13 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 0303f518ec..d5c4427fa0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
# do not edit this file manually, instead run the generate:travis-yml console command
# if you are a Piwik core developer, to auto generate the .travis.yml:
-# 1) edit this template file: https://github.com/piwik/travis-scripts/blob/master/generator/templates/travis.yml.twig
-# 2) commit the updated submodule in `piwik/tests/travis/`
+# 1) edit this template file: https://github.com/matomo-org/travis-scripts/blob/master/generator/templates/travis.yml.twig
+# 2) commit the updated submodule in `matomo/tests/travis/`
# when modifying this file, please consider whether your changes should apply to plugin .travis.yml files. if not, check whether the pluginName twig var is empty,
# otherwise your changes will be synced with every plugin that uses an auto generated .travis.yml
@@ -13,12 +13,13 @@ language: php
services:
- redis-server
+ - mysql
addons:
apt:
packages:
- nginx
- - realpath
+ - coreutils
- lftp
git:
@@ -56,31 +57,35 @@ matrix:
- php: 7.2
env: TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
sudo: false
+ service:
+ - mysql
addons:
apt:
packages:
- nginx
- - realpath
+ - coreutils
- php: 7.2
env: TEST_SUITE=AngularJSTests MYSQL_ADAPTER=PDO_MYSQL SKIP_COMPOSER_INSTALL=1
sudo: false
addons: false
# All tests after another
- - php: 7.3
+ - php: 7.4
env: TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-first-half-only"
sudo: required
- - php: 7.3
+ - php: 7.4
env: TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-second-half-only"
sudo: required
# UITests use a specific version because the default 5.5 (== 5.5.38) is missing FreeType support
- php: 7.2
env: TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL UITEST_EXTRA_OPTIONS="--run-first-half-only"
+ dist: xenial
sudo: false
- php: 7.2
env: TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL UITEST_EXTRA_OPTIONS="--run-second-half-only"
+ dist: xenial
sudo: false
-dist: trusty
+dist: bionic
script: $PIWIK_ROOT_DIR/tests/travis/travis.sh
@@ -90,7 +95,7 @@ before_install:
install:
- git fetch -q
- - export GENERATE_TRAVIS_YML_COMMAND="php ./tests/travis/generator/main.php generate:travis-yml --core --verbose"
+ - export GENERATE_TRAVIS_YML_COMMAND="php ./tests/travis/generator/main.php generate:travis-yml --core --distribution=\"bionic\" --verbose"
- '[[ "$TRAVIS_JOB_NUMBER" != *.1 || "$TRAVIS_PULL_REQUEST" != "false" ]] || ./tests/travis/autoupdate_travis_yml.sh'
- ./tests/travis/configure_git.sh