forked from partkeepr/PartKeepr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 1.34 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
language: php
php:
- 5.6
- 7.0
- nightly
script:
- vendor/bin/phpunit -c app/ --coverage-clover build/logs/clover.xml
env:
- SYMFONY__TESTDB=mysql
- SYMFONY__TESTDB=pgsql
- SYMFONY__TESTDB=sqlite
matrix:
exclude:
- php: hhvm
env: DB=pgsql # PDO driver for pgsql is unsupported by HHVM (3rd party install for support)
allow_failures:
- php: nightly
- php: hhvm
addons:
code_climate:
repo_token: 9bf99f3d5903f9f2ae2280f49cc469ef219bb965205cd324847f22d4698257d9
before_install:
- echo "extension=ldap.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
before_script:
- cp app/config/parameters.php.dist app/config/parameters.php
- if [[ "$SYMFONY__TESTDB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS partkeepr_test;" -U postgres; fi
- if [[ "$SYMFONY__TESTDB" == "pgsql" ]]; then psql -c "create database partkeepr_test;" -U postgres; fi
- if [[ "$SYMFONY__TESTDB" == "mysql" ]]; then mysql -e "DROP database IF EXISTS partkeepr_test;" -uroot; fi
- if [[ "$SYMFONY__TESTDB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS partkeepr_test;" -uroot; fi
- composer self-update
- composer install --prefer-source --no-interaction
- app/console cache:warmup --env=test
- app/console doctrine:schema:create --env=test
after_script:
- vendor/bin/test-reporter