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:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 19 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index 0be69f5c48..ba201c014c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,7 @@
# do not edit this file manually, instead run the generate:travis-yml console command
-# if you are a Piwik core developer, edit this template file to auto generate the .travis.yml: https://github.com/piwik/piwik/blob/master/plugins/TestRunner/templates/travis.yml.twig
+# 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/`
# 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
@@ -9,8 +11,6 @@
language: php
-group: legacy
-
php:
- 5.6
- 5.5
@@ -42,8 +42,8 @@ env:
- TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
- TEST_SUITE=AngularJSTests MYSQL_ADAPTER=PDO_MYSQL SKIP_COMPOSER_INSTALL=1
# All tests after another
- - TEST_SUITE=AllTests MYSQL_ADAPTER=PDO_MYSQL
- - TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI
+ - TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-first-half-only"
+ - TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-second-half-only"
- TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL UITEST_EXTRA_OPTIONS="--run-first-half-only"
- TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL UITEST_EXTRA_OPTIONS="--run-second-half-only"
global:
@@ -55,9 +55,6 @@ env:
matrix:
fast_finish: true
- allow_failures:
- - php: hhvm
- - php: 7
exclude:
# Run test suites separately only on PHP 5.6 with PDO
- php: 5.5
@@ -122,10 +119,13 @@ install:
- ./tests/travis/configure_git.sh
+ # disable tls for php 5.3 as openssl isn't available
+ - '[[ "$TRAVIS_PHP_VERSION" == 5.3* ]] && composer config -g -- disable-tls true || true'
+
# travis now complains about this failing 9 times out of 10, so removing it
#- travis_retry composer self-update
-
- - '[ "$SKIP_COMPOSER_INSTALL" == "1" ] || travis_retry composer install'
+ - '[ "$SKIP_COMPOSER_INSTALL" == "1" ] || travis_retry composer install'
+
before_script:
@@ -137,13 +137,21 @@ before_script:
# disable opcache to avoid random failures on travis
- echo "opcache.enable=0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+ # make tmpfs and run MySQL on it for reasonnable performance
+ - sudo mkdir /mnt/ramdisk
+ - sudo mount -t tmpfs -o size=1024m tmpfs /mnt/ramdisk
+ - sudo stop mysql
+ - sudo mv /var/lib/mysql /mnt/ramdisk
+ - sudo ln -s /mnt/ramdisk/mysql /var/lib/mysql
+ - sudo start mysql
+
# print out mysql information
- mysql --version
- mysql -e "SELECT VERSION();"
# configure mysql
- mysql -e "SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES'" # Travis default
- # try to avoid mysql has gone away errors
+ # try to avoid 'mysql has gone away' errors
- mysql -e "SET GLOBAL wait_timeout = 36000;"
- mysql -e "SET GLOBAL max_allowed_packet = 134209536;"
- mysql -e "SHOW VARIABLES LIKE 'max_allowed_packet';"
@@ -186,7 +194,6 @@ notifications:
slack:
rooms:
- piwik:3HWhNh21qPfDACQXTrJOb0mW
- - piwikpro:7OABSbDrywSTo2nv9lD2svXG
on_success: :change
on_failure: :change