-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
53 lines (53 loc) · 1.79 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
dist: jammy
sudo: required
language: node_js
node_js:
- 18
services:
- mysql
env:
global:
- MT_HOME=/home/travis/mt
- PERL_CPANM_OPT="--from https://www.cpan.org"
before_install:
- curl -sL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 | tar -xj
- sudo mv phantomjs-1.9.8-linux-x86_64 /usr/local/share/phantomjs
- sudo ln -sf /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
- npm install -g grunt-cli
- npm install -g bower
- bower install
- mysql -e 'CREATE DATABASE mt_test'
- sudo apt-get update
- sudo apt-get install cpanminus libplack-perl libdbd-mysql-perl curl 2>&1
- curl -sL https://cpanmin.us | perl - --sudo App::cpanminus
- sudo cpanm -n Digest::SHA
- sudo cpanm -n Digest::SHA1
- sudo cpanm -n CGI::PSGI
- sudo cpanm -n CGI::Parse::PSGI
- sudo cpanm -n CGI::Compile
- sudo cpanm -n XMLRPC::Transport::HTTP::Plack
- sudo cpanm -n HTML::Entities
- sudo cpanm -n HTML::Parser
- sudo cpanm -n Crypt::DSA
- sudo cpanm -n Crypt::SSLeay
- sudo cpanm -n Archive::Tar
- sudo cpanm -n Archive::Zip
- sudo cpanm -n IO::Compress::Gzip
- sudo cpanm -n IO::Uncompress::Gunzip
- sudo cpanm -n Net::SMTP
- sudo cpanm -n IO::Socket::SSL
- sudo cpanm -n Net::SSLeay
- sudo cpanm -n XML::Parser
- sudo cpanm -n Starman
- sudo cpanm -n Test::Deep
- git clone --branch develop --depth=1 https://github.com/movabletype/movabletype.git $MT_HOME
- perl -i -pe 's{DBUser mt}{DBUser travis}g' $MT_HOME/t/mysql-test.cfg
- perl -i -pe 's{(eval "use MT::PSGI;";)}{$1 die \$@ if \$@;}g' $MT_HOME/t/mysql-test-psgi-server.pl
notifications:
irc:
channels:
- "irc.freenode.com#movabletype"
- "irc.freenode.com#movabletype-ja"
on_success: change
on_failure: always
use_notice: true