forked from movabletype/movabletype
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
83 lines (65 loc) · 1.93 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
sudo: required
dist: precise
language: perl
perl:
- "5.18"
services:
- memcached
cache:
directories:
- ./local
- ${HOME}/image-magick
- ${HOME}/perl5/perlbrew/perls/${TRAVIS_PERL_VERSION}/bin
- ${HOME}/perl5/perlbrew/perls/${TRAVIS_PERL_VERSION}/lib/site_perl
addons:
apt_packages:
- libgd2-xpm-dev
- libgmp3-dev
- libperl-dev
- php5
- php5-cli
- php5-mysql
- php5-gd
- php5-memcache
- libpng12-dev
- libgif-dev
- libjpeg-dev
- cpanminus
- zip
- unzip
before_install:
# Use PHPUnit 4.8, because PHP version of Travis CI is 5.3.
- wget -O phpunit https://phar.phpunit.de/phpunit-old.phar
- chmod +x phpunit
install:
# Install ImageMagick for installing Image::Magick.
- bash t/build-image-magick.sh
# Tests fail with Perl 5.10.
- cpanm --notest -L ./local XML::Parser::PerlSAX
# Use patched Coro for Perl 5.22.
- cpanm -L ./local https://github.com/rurban/Coro/archive/rel-6.48_01.tar.gz
# Tests fail with Perl 5.8 and 5.10.
- cpanm --notest -L ./local Twiggy
# Cannot install Math::GMP 2.12 and 2.13 with Perl 5.8.
- cpanm -L ./local Math::[email protected]
# Instal CPAN modules.
- cp ./t/cpanfile .
- travis_retry cpanm Carton
- travis_retry carton install
# Build MT.
#- SHELL=/bin/bash make me
before_script:
# Create MySQL database for tests.
- mysql -e "create database mt_test;"
- mysql -uroot -e "grant all privileges on mt_test.* to mt@localhost;"
# Some tests need mt-config.cgi.
- cp ./t/mysql-test.cfg ./mt-config.cgi
# Remove failed tests.
- rm t/34-sqlite.t
- rm t/90-podcoverage.t
- rm plugins/MultiBlog/t/02.tags.t
script:
- bash -c "PERL_HASH_SEED=0 carton exec prove -s t plugins/*/t && ./phpunit"
notifications:
slack:
secure: c11SdzxeFF23AlZS7b8jeCL8CJSn2Ire6ovAneFwHUUxb9jeG9lqC78mOJiE0Yrcdkv7beom4WVYrFY7ZoT+tD5RXNUkh8PcxPPXBFjvfDi5PCXwbNs1wb4Pa4bHAZvABgjCN8+21KQ6GcvlHl6sDQmhy/8v4yeYngOavsYfhMs=