Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 71 lines (63 sloc) 2.833 kb
0526163 @davidpersson Add file headers; add doc links in collection.
davidpersson authored
1 #
2 # Lithium: the most rad php framework
3 #
1d68573 @davidpersson Happy 2015.
davidpersson authored
4 # @copyright Copyright 2015, Union of RAD (http://union-of-rad.org)
0526163 @davidpersson Add file headers; add doc links in collection.
davidpersson authored
5 # @license http://opensource.org/licenses/bsd-license.php The BSD License
6 #
7
007a6ea @gwoo adding initial travis.yml
gwoo authored
8 language: php
c96901d @gwoo adding irc notification to travis
gwoo authored
9
bc0c4f0 @jails Refactor Travis CI.
jails authored
10 services:
11 - mongodb
12 - memcache
13 - couchdb
9c90df4 @davidpersson Adding redis to CI matrix.
davidpersson authored
14 - redis
bc0c4f0 @jails Refactor Travis CI.
jails authored
15
616b0ed @mehlah Install php extensions necessary for Travis build
mehlah authored
16 env:
45bebe0 @davidpersson Adding commented default build in CI.
davidpersson authored
17 # Run one build with as many enabled and compatible extensions as possible.
2d61af8 @davidpersson Setup experimental HHVM in CI build matrix; allow fails.
davidpersson authored
18 # Keep in-sync with potential partial excludes in the `matrix` section.
7299456 @davidpersson Tune travis config.
davidpersson authored
19 - DB=sqlite PHP_EXT="opcache memcached redis apcu" TESTS=all
20 # Must be tested in isolation as it interferes with other opcaches.
21 - PHP_EXT=xcache TESTS=storage
22 # Test each remaining database in isolation.
23 - DB=mysql TESTS=data
24 - DB=pgsql TESTS=data
25 - DB=mongodb PHP_EXT=mongo TESTS=data
26 - DB=couchdb TESTS=data
616b0ed @mehlah Install php extensions necessary for Travis build
mehlah authored
27
007a6ea @gwoo adding initial travis.yml
gwoo authored
28 php:
29 - 5.3
30 - 5.4
bc0c4f0 @jails Refactor Travis CI.
jails authored
31 - 5.5
6d04e63 @davidpersson Adding PHP 5.6 to build matrix.
davidpersson authored
32 - 5.6
bc0c4f0 @jails Refactor Travis CI.
jails authored
33
9ab56bb @davidpersson Exclude incompatible builds xcache/APC on PHP 5.5.
davidpersson authored
34 matrix:
2d61af8 @davidpersson Setup experimental HHVM in CI build matrix; allow fails.
davidpersson authored
35 include:
7299456 @davidpersson Tune travis config.
davidpersson authored
36 # We just include one exemplaric job here.
37 - php: hhvm-nightly
38 env: PHP_EXT=memcached TESTS=all
2d61af8 @davidpersson Setup experimental HHVM in CI build matrix; allow fails.
davidpersson authored
39 allow_failures:
7299456 @davidpersson Tune travis config.
davidpersson authored
40 # We do not aim for full HHVM compatibilty now.
41 - php: hhvm-nightly
42 env: PHP_EXT=memcached TESTS=all
be76c00 @davidpersson Enable fast finish.
davidpersson authored
43 # Mark build as failed as soon as one job failed.
44 fast_finish: true
9ab56bb @davidpersson Exclude incompatible builds xcache/APC on PHP 5.5.
davidpersson authored
45
5365763 @blainesch Update travis to check quality of modified files.
blainesch authored
46 before_script:
fa9833a @davidpersson Use env variables directly for CI.
davidpersson authored
47 - php tests/ci/depends.php
7073ba2 @davidpersson Fixing creation of test databases for CI.
davidpersson authored
48 - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database lithium_test; create database lithium_test_alternative;'; fi"
6a2eaaa @davidpersson Split and fix creation of test database for postgres CI.
davidpersson authored
49 - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database lithium_test;' -U postgres; psql -c 'create database lithium_test_alternative;' -U postgres; fi"
bc0c4f0 @jails Refactor Travis CI.
jails authored
50 - cd ..
51 - mkdir libraries
52 - mv lithium libraries
e892b91 @davidpersson Optimize git clone in CI script.
davidpersson authored
53 - git clone --branch=master --depth=1 --quiet git://github.com/UnionOfRAD/li3_fixtures.git libraries/li3_fixtures
bc0c4f0 @jails Refactor Travis CI.
jails authored
54 - mkdir -p ci/config
55 - cd ci
56 - cp ../libraries/lithium/tests/ci/config/libraries.php config/libraries.php
7d8833a @davidpersson Consolidate DB specific CI bootstrap files.
davidpersson authored
57 - cp ../libraries/lithium/tests/ci/config/bootstrap.php config/bootstrap.php
29cc14e @nateabele Testing new build script.
nateabele authored
58
5365763 @blainesch Update travis to check quality of modified files.
blainesch authored
59 script:
29dcedf @davidpersson Run all tests in CI only when DB env variable is set.
davidpersson authored
60 # Run all tests.
7299456 @davidpersson Tune travis config.
davidpersson authored
61 - sh -c "if [ '$TESTS' = 'all' ]; then ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/cases; fi"
62 - sh -c "if [ '$TESTS' = 'all' ]; then ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/integration; fi"
29dcedf @davidpersson Run all tests in CI only when DB env variable is set.
davidpersson authored
63 # Run just the database related tests.
7299456 @davidpersson Tune travis config.
davidpersson authored
64 - sh -c "if [ '$TESTS' = 'data' ]; then ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/cases/data; fi"
65 - sh -c "if [ '$TESTS' = 'data' ]; then ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/integration/data; fi"
66 # Run just the storage related tests.
67 - sh -c "if [ '$TESTS' = 'storage' ]; then ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/cases/storage; fi"
68 - sh -c "if [ '$TESTS' = 'storage' ]; then ../libraries/lithium/console/li3 test --filters=Profiler ../libraries/lithium/tests/integration/storage; fi"
8667747 @jails Official support of PHP 5.5 and reactivate irc notifications.
jails authored
69
70 notifications:
7299456 @davidpersson Tune travis config.
davidpersson authored
71 email: false
Something went wrong with that request. Please try again.