forked from eLod/li3_mailer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (21 loc) · 1.12 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
language: php
php:
- 5.3
- 5.4
before_install:
- cd ../
- git clone git://github.com/UnionOfRAD/framework.git
- mv li3_mailer/ framework/app/libraries/li3_mailer
- cd framework
- git submodule update --init --recursive
- cd libraries/lithium && git pull --rebase origin master
- cd ../.. && git submodule add https://github.com/swiftmailer/swiftmailer.git libraries/swiftmailer
- cd app/libraries && git clone git://github.com/UnionOfRAD/li3_quality.git
- cd ..
- sed '$d' config/bootstrap/libraries.php > config/bootstrap/testlibraries.php
- echo "Libraries::add('li3_mailer');" >> config/bootstrap/testlibraries.php
- echo "Libraries::add('li3_quality');" >> config/bootstrap/testlibraries.php
- echo "Libraries::add('swiftmailer', array('prefix' => 'Swift_', 'bootstrap' => 'lib/swift_required.php'));" >> config/bootstrap/testlibraries.php
- echo -n "?>" >> config/bootstrap/testlibraries.php
- mv config/bootstrap/testlibraries.php config/bootstrap/libraries.php
script: ../libraries/lithium/console/li3 test libraries/li3_mailer/tests && ../libraries/lithium/console/li3 quality syntax --library=li3_mailer