forked from matomo-org/matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (84 loc) · 2.75 KB
/
.travis.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: php
# We want to test against PHP 5.3/5.4/5.5
php:
- 5.5
- 5.4
- 5.3
- hhvm
# Separate different test suites
env:
matrix:
# PDO Mysql
- TEST_SUITE=IntegrationTests MYSQL_ADAPTER=PDO_MYSQL
- TEST_SUITE=PluginTests MYSQL_ADAPTER=PDO_MYSQL
- TEST_SUITE=CoreTests MYSQL_ADAPTER=PDO_MYSQL
# Mysqli
- TEST_SUITE=IntegrationTests MYSQL_ADAPTER=MYSQLI
- TEST_SUITE=PluginTests MYSQL_ADAPTER=MYSQLI
- TEST_SUITE=CoreTests MYSQL_ADAPTER=MYSQLI
# Javascript tests
- TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
global:
- secure: "AMhZmPZx4SUcuZRBzGHlQPxzM4D8FvFB3UThDa52gbi9KIBrwcumzV2VGi6B\n5fgjwtB4XTE1In7qhY2HMikPWBmWYYOQ5QcMPJsqqHt4iMmahx8WKzne6NOk\nNpqAuje/fulNGeP2LJZi0nrub3Fh4VwXaOvpNloKNQN/2JuqPtM="
- secure: "DySde80fX3dw0osGY5s5lGiGLjMleUkkONsuRDC4xjT1hAQP94FGHpPXVZV8\nAQY0s8MQmcK2eRLOQrmE9Bh1XXbGqh40s66XhSWq0hulFHxQH5OLaZXccFeu\n5WxGkHXnNDIc+CVhXW/IIbHZPO1K6hffS8fuvP1o6mYgxwFL6Xw="
matrix:
allow_failures:
- php: hhvm
exclude:
# Javascript tests need to run only on one PHP version
- php: 5.4
env: TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
- php: 5.5
env: TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
- php: hhvm
env: TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
# Only run Mysqli tests on PHP 5.5
- php: 5.4
env: TEST_SUITE=IntegrationTests MYSQL_ADAPTER=MYSQLI
- php: 5.4
env: TEST_SUITE=PluginTests MYSQL_ADAPTER=MYSQLI
- php: 5.4
env: TEST_SUITE=CoreTests MYSQL_ADAPTER=MYSQLI
- php: 5.5
env: TEST_SUITE=IntegrationTests MYSQL_ADAPTER=MYSQLI
- php: 5.5
env: TEST_SUITE=PluginTests MYSQL_ADAPTER=MYSQLI
- php: 5.5
env: TEST_SUITE=CoreTests MYSQL_ADAPTER=MYSQLI
- php: hhvm
env: TEST_SUITE=IntegrationTests MYSQL_ADAPTER=MYSQLI
- php: hhvm
env: TEST_SUITE=PluginTests MYSQL_ADAPTER=MYSQLI
- php: hhvm
env: TEST_SUITE=CoreTests MYSQL_ADAPTER=MYSQLI
script: ./travis.sh
before_script:
- composer install
- uname -a
- date
- php -r "var_dump(gd_info());"
- mysql -e 'create database piwik_tests;'
- ./tests/travis/prepare.sh
- ./tests/travis/setup_webserver.sh
- cd tests/PHPUnit
after_success:
- cd $TRAVIS_BUILD_DIR
- ./tests/travis/generate_docs.sh
after_script:
- ./tests/travis/initiate_ui_tests.sh
- cat /var/log/nginx/error.log
- cat $TRAVIS_BUILD_DIR/tmp/php-fpm.log
- cat $TRAVIS_BUILD_DIR/tmp/logs/piwik.log
- cd $TRAVIS_BUILD_DIR
- ./tests/travis/upload_artifacts.sh
notifications:
irc:
skip_join: true
on_success: change
channels:
- "irc.freenode.org#piwik-dev"
template:
- "%{repository} (%{commit}) : %{message} %{foo} "
- "Build details: %{build_url}"
email: