Skip to content

Commit

Permalink
Merge pull request #17 from matomo-org/updatetests
Browse files Browse the repository at this point in the history
run tests against latest 4.x-dev branch instead of latest release
  • Loading branch information
sgiehl authored Feb 25, 2020
2 parents 30054d3 + 2ecbd69 commit f470ebe
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
language: php

php:
- 5.6
- 5.5
- 7.2
- 7.3
# - hhvm

services:
Expand All @@ -24,20 +24,20 @@ git:
env:
global:
- PLUGIN_NAME=TasksTimetable
- PIWIK_ROOT_DIR=$TRAVIS_BUILD_DIR/piwik
# this variable controls the version of Piwik your tests will run against.
- PIWIK_ROOT_DIR=$TRAVIS_BUILD_DIR/matomo
# this variable controls the version of Matomo your tests will run against.
# by default it will run against the maximum support version read from plugin.json
# (PIWIK_TEST_TARGET=maximum_supported_piwik).
# You can also specify a specific Piwik version
# You can also specify a specific Matomo version
# (PIWIK_TEST_TARGET=2.16.0-b1).
- PIWIK_TEST_TARGET=maximum_supported_piwik
- PIWIK_TEST_TARGET=4.x-dev
matrix:
- TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_PIWIK_BRANCH=$PIWIK_TEST_TARGET

matrix:
exclude:
# execute UI tests only w/ PHP 5.6
- php: 5.5
- php: 7.3
env: TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_PIWIK_BRANCH=$PIWIK_TEST_TARGET

dist: trusty
Expand All @@ -54,17 +54,17 @@ install:
- cp -R !($PLUGIN_NAME) $PLUGIN_NAME
- cp -R .git/ $PLUGIN_NAME/
- cp .travis.yml $PLUGIN_NAME
# checkout piwik in the current directory
- git clone -q https://github.com/piwik/piwik.git piwik
- cd piwik
# checkout matomo in the current directory
- git clone -q https://github.com/matomo-org/matomo.git matomo
- cd matomo
- git fetch -q --all
- git submodule update

# make sure travis-scripts repo is latest for initial travis setup
- '[ -d ./tests/travis/.git ] || sh -c "rm -rf ./tests/travis && git clone https://github.com/piwik/travis-scripts.git ./tests/travis"'
- '[ -d ./tests/travis/.git ] || sh -c "rm -rf ./tests/travis && git clone https://github.com/matomo-org/travis-scripts.git ./tests/travis"'
- cd ./tests/travis ; git checkout master ; cd ../..

- export GENERATE_TRAVIS_YML_COMMAND="php ./tests/travis/generator/main.php generate:travis-yml --plugin=\"TasksTimetable\" --dist-trusty --sudo-false --verbose"
- export GENERATE_TRAVIS_YML_COMMAND="php ./tests/travis/generator/main.php generate:travis-yml --plugin=\"TasksTimetable\" --php-versions=\"7.2,7.3\" --sudo-false --verbose"
- '[[ "$TRAVIS_JOB_NUMBER" != *.1 || "$TRAVIS_PULL_REQUEST" != "false" ]] || ./tests/travis/autoupdate_travis_yml.sh'

- ./tests/travis/checkout_test_against_branch.sh
Expand Down

0 comments on commit f470ebe

Please sign in to comment.