forked from UnionOfRAD/lithium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 1.09 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
language: php
services:
- mongodb
- memcache
- couchdb
env:
- OPCODE_CACHE=apc;DB=mysql
- OPCODE_CACHE=apc;DB=pgsql
- OPCODE_CACHE=apc;DB=sqlite
- OPCODE_CACHE=apc;DB=mongodb
- OPCODE_CACHE=apc;DB=couchdb
php:
- 5.3
- 5.4
- 5.5
before_script:
- php tests/ci/depends.php $OPCODE_CACHE
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database lithium_test;'; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database lithium_test;' -U postgres; fi"
- cd ..
- mkdir libraries
- mv lithium libraries
- git clone --branch=master --depth=100 --quiet git://github.com/UnionOfRAD/li3_fixtures.git libraries/li3_fixtures
- mkdir -p ci/config
- cd ci
- cp ../libraries/lithium/tests/ci/config/libraries.php config/libraries.php
- cp ../libraries/lithium/tests/ci/config/bootstrap.$DB.php config/bootstrap.php
script:
- ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/cases && ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/integration
notifications:
irc: "irc.freenode.org#li3-core"