forked from GotCms/GotCms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 1.07 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
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
matrix:
allow_failures:
- php: 5.5
env:
- DB=mysql
- DB=pgsql
before_install:
- cp tests/TestConfiguration.travis-${DB}.php tests/TestConfiguration.php
- cp tests/config/local.php config/autoload/local.php
- cp tests/phpunit.xml.dist tests/phpunit.xml
- chmod -R ug+rw module/Development/views/
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --prefer-source --no-interaction
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS gotcms_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE gotcms_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS gotcms_tests;'; fi"
script: ./scripts/runtests.sh
after_script:
- php scripts/coveralls -v --exclude-no-stmt