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

test.travis.yml « resources « Integration « tests « CoreConsole « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d469b75ff114da9b7947e22f6ce17bc1f4edfc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: php

php:
  - 5.3

env:
  global:
    - PRESERVED_VAR=123
    - secure: anotherpreservedvar
  matrix:
    - TEST_SUITE=UnitTests MYSQL_ADAPTER=PDO_MYSQL
    - TEST_SUITE=IntegrationTests MYSQL_ADAPTER=PDO_MYSQL

script: ./travis.sh

install:
  - TEST_PIWIK_VERSION=$(wget builds.piwik.org/LATEST -q -O -)
  - TEST_PIWIK_VERSION=`echo $TEST_PIWIK_VERSION | tr -d ' ' | tr -d '\n'`
  - mkdir ExamplePlugin
  - cp -R !(ExamplePlugin) ExamplePlugin
  - cp -R .git/ ExamplePlugin/
  - git clone https://github.com/piwik/piwik.git piwik
  - cd piwik
  - git checkout "$TEST_PIWIK_VERSION"
  - git submodule init
  - git submodule update || true
  - composer self-update
  - composer install
  - rm -rf plugins/ExamplePlugin
  - cd ../
  - mv ExamplePlugin piwik/plugins

before_script:
  - cd piwik
  - uname -a
  - date
  - mysql -e 'create database piwik_tests;'
  - ./tests/travis/prepare.sh
  - ./tests/travis/setup_webserver.sh
  - wget https://raw.github.com/piwik/piwik-tests-plugins/master/activateplugin.php
  - php activateplugin.php ExamplePlugin
  - cd tests/PHPUnit

custom_section:
  - this will be preserved
  # as should this

after_script:
  - cat /var/log/nginx/error.log

notifications:
  # another section
  - a
  - b
  - c