forked from dereuromark/cakephp-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1.41 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
language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- REPO_NAME=cakephp-tools
- PLUGIN_NAME=Tools
- DB=mysql
matrix:
- DB=mysql CAKE_VERSION=master
- DB=mysql CAKE_VERSION=2.7
matrix:
include:
- php: 5.4
env:
- CAKE_VERSION=master
- COVERALLS=1
fast_finish: true
before_script:
- composer global require 'phpunit/phpunit=3.7.33'
- git clone https://github.com/FriendsOfCake/travis.git --depth 1 ../travis
- ../travis/before_script.sh
- cd ../cakephp/app
- ln -s ~/.composer/vendor/phpunit/phpunit/PHPUnit Vendor/PHPUnit
- echo "Configure::write('Security.salt', 'AxcG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');" >> Config/bootstrap.php
- echo "Configure::write('Security.cipherSeed', '16659201697453542496749683615');" >> Config/bootstrap.php
- echo "<?php App::uses('MyModel', 'Tools.Model'); class AppModel extends MyModel {}" > Model/AppModel.php
- echo "<?php App::uses('MyController', 'Tools.Controller'); class AppController extends MyController {}" > Controller/AppController.php
- echo "<?php App::uses('BaseEmailConfig', 'Tools.Config'); class EmailConfig extends BaseEmailConfig {}" > Config/email.php
- echo "Configure::write('Config.adminEmail', '[email protected]');" >> Config/bootstrap.php
- cd ..
- cp ../cakephp-tools/phpunit.xml app/
script:
- ../travis/script.sh
after_success:
- ../travis/after_success.sh
notifications:
email: false