diff options
author | diosmosis <benaka@piwik.pro> | 2015-07-19 02:10:41 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-07-19 02:10:41 +0300 |
commit | 92f5e5c26d979fe824e373d406f9e0e3fe36814c (patch) | |
tree | 3320335f33cc3f7d54e76e277403094702a5a5c5 /plugins/TestRunner | |
parent | 01bae0c2f79ca589f1964a13409117e8bcfc4849 (diff) |
Remoe travis.yml.twig template from core now that it is in travis-scripts.
Diffstat (limited to 'plugins/TestRunner')
-rw-r--r-- | plugins/TestRunner/templates/travis.yml.twig | 212 |
1 files changed, 0 insertions, 212 deletions
diff --git a/plugins/TestRunner/templates/travis.yml.twig b/plugins/TestRunner/templates/travis.yml.twig deleted file mode 100644 index 33f59a1077..0000000000 --- a/plugins/TestRunner/templates/travis.yml.twig +++ /dev/null @@ -1,212 +0,0 @@ -# do not edit this file manually, instead run the generate:travis-yml console command -{% if generationMode == 'core' %} -# 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 - -# 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 - -# also please test generation before committing by running ./console generate:travis-yml --core and ./console generate:travis-yml --plugin=CustomAlerts -# and making sure the .travis.yml files are changed correctly -{% endif %} - -language: php - -{% if phpVersions|default is empty %} -php: - - 5.6 - - 5.3.3 -# - hhvm -{% else %} -php: -{% for version in phpVersions %} - {{ version|raw }} -{% endfor %} -{% endif %} - -services: - - redis-server - -# Separate different test suites -{% if existingEnv|default is empty -%} -env: - global: -{% if pluginName|default is not empty %} - PLUGIN_NAME={{ pluginName|raw }} -{% endif %}{% if generationMode == 'core' %} - - PIWIK_ROOT_DIR=$TRAVIS_BUILD_DIR -{% else %} - - PIWIK_ROOT_DIR=$TRAVIS_BUILD_DIR/piwik - - PIWIK_LATEST_STABLE_TEST_TARGET={{ latestStableVersion }} -{% endif %} -{% if extraGlobalEnvVars|default is not empty %}{% for var in extraGlobalEnvVars %} - {{ var|raw }} -{% endfor %}{% endif %} - matrix: -{% for test in testsToRun %} - TEST_SUITE={{ test.name|raw }} {{ test.vars|raw }} -{% endfor %} -{%- else -%} -env: - {{ existingEnv|trim|raw }} -{% endif %} - -{% if existingMatrix|default is empty -%} -{%- if testsToExclude is not empty -%} -matrix: - exclude: -{% for testExclude in testsToExclude %} -{% if testExclude.description|default is not empty %} # {{ testExclude.description|raw }} -{% endif %} - - php: {{ testExclude.php|raw }} - env: {{ testExclude.env|raw }} -{% endfor %} -{%- endif -%} -{%- else -%} -matrix: - {{ existingMatrix|trim|raw }} -{% endif %} - -sudo: required - -script: {{ travisShScriptLocation }} - -before_install: -{% if customTravisBuildSteps.before_install.before|default is not empty %}{{ customTravisBuildSteps.before_install.before|raw }} - -{% endif %} - # do not use the Zend allocator on PHP 5.3 since it will randomly segfault after program execution - - '[[ "$TRAVIS_PHP_VERSION" == 5.3* ]] && export USE_ZEND_ALLOC=0 || true' -{% if customTravisBuildSteps.before_install.after|default is not empty %} - -{{ customTravisBuildSteps.before_install.after|raw }} -{% endif %} - -install: -{% if customTravisBuildSteps.install.before|default is not empty %}{{ customTravisBuildSteps.install.before|raw }} - -{% endif %} -{% if generationMode == 'plugin' %} - # move all contents of current repo (which contains the plugin) to a new directory - - mkdir $PLUGIN_NAME - - cp -R !($PLUGIN_NAME) $PLUGIN_NAME - - cp -R .git/ $PLUGIN_NAME/ - - cp .travis.yml $PLUGIN_NAME -{% endif %} -{% if generationMode != 'core' %} - # checkout piwik in the current directory - - git clone -q https://github.com/piwik/piwik.git piwik - - cd piwik - - git fetch -q --all -{% else %} - - git fetch -q -{% endif %} -{% if generationMode == 'plugin' or generationMode == 'piwik-tests-plugins' %} - - ./tests/travis/checkout_test_against_branch.sh - - git submodule init -q - - git submodule update -q || true -{% endif %} - -{% if generationMode == 'plugin' %} - # move plugin contents to folder in the plugins subdirectory - - rm -rf plugins/$PLUGIN_NAME - - mv ../$PLUGIN_NAME plugins - -{% endif %} -{% if generationMode == 'plugin' or generationMode == 'piwik-tests-plugins' %} - # clone dependent repos - - ./tests/travis/checkout_dependent_plugins.sh -{% endif %} -{% if customTravisBuildSteps.install.after|default is not empty %} - -{{ customTravisBuildSteps.install.after|raw }} -{% endif %} - -before_script: -{% if customTravisBuildSteps.before_script.before|default is not empty %}{{ customTravisBuildSteps.before_script.before|raw }} - -{% endif %} - - '[ ! -f ./tests/travis/install_mysql_5.6.sh ] || ./tests/travis/install_mysql_5.6.sh' - - - phpenv config-rm xdebug.ini; - - # add always_populate_raw_post_data=-1 to php.ini - - echo "always_populate_raw_post_data=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - - # disable opcache to avoid random failures on travis - - echo "opcache.enable=0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - - - ./tests/travis/configure_git.sh - - # 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 - - mysql -e "SET GLOBAL wait_timeout = 36000;" - - mysql -e "SET GLOBAL max_allowed_packet = 134209536;" - - mysql -e "SHOW VARIABLES LIKE 'max_allowed_packet';" - - mysql -e "SHOW VARIABLES LIKE 'wait_timeout';" - - - mysql -e "SELECT @@sql_mode;" - # - mysql -e "SHOW GLOBAL VARIABLES;" - - # 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' - - # print out more debugging info - - uname -a - - date - # - php -i - - php -r "var_dump(gd_info());" - - mysql -e 'create database piwik_tests;' - - # Make sure we use Python 2.6 - - '[ ! -f ./tests/travis/install_python_2.6.sh ] || ./tests/travis/install_python_2.6.sh' - - - ./tests/travis/prepare.sh - - ./tests/travis/setup_webserver.sh - - - export GENERATE_TRAVIS_YML_COMMAND="{{ consoleCommand|raw }}" - - '[[ "$TRAVIS_JOB_NUMBER" != *.1 || "$TRAVIS_PULL_REQUEST" != "false" ]] || ./tests/travis/autoupdate_travis_yml.sh' - - - cd {{ travisShCwd }} -{% if customTravisBuildSteps.before_script.after|default is not empty %} - -{{ customTravisBuildSteps.before_script.after|raw }} -{% endif %} - -after_script: -{% if customTravisBuildSteps.after_script.before|default is not empty %}{{ customTravisBuildSteps.after_script.before|raw }} - -{% endif %} - # change directory back to root travis dir - - cd $PIWIK_ROOT_DIR - - # output contents of files w/ debugging info to screen - - cat /var/log/nginx/error.log - - cat $PIWIK_ROOT_DIR/tmp/php-fpm.log - - cat $PIWIK_ROOT_DIR/tmp/logs/piwik.log - - cat $PIWIK_ROOT_DIR/config/config.ini.php - - # upload test artifacts (for debugging travis failures) - - ./tests/travis/upload_artifacts.sh -{% if customTravisBuildSteps.after_script.after|default is not empty %} - -{{ customTravisBuildSteps.after_script.after|raw }} -{% endif %} - -after_success: -{% if customTravisBuildSteps.after_success.before|default is not empty %}{{ customTravisBuildSteps.after_success.before|raw }} - -{% endif %} - - cd $PIWIK_ROOT_DIR -{% if generationMode == 'core' %} - ./tests/travis/generate_docs.sh -{% endif %} -{% if customTravisBuildSteps.after_success.after|default is not empty %} - -{{ customTravisBuildSteps.after_success.after|raw }} -{% endif %} -{% if extraSections|default is not empty %} - -{{ extraSections|trim|raw }} -{%- endif -%} |