forked from sumocoders/forkcms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 816 Bytes
/
.travis.yml
File metadata and controls
29 lines (24 loc) · 816 Bytes
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
language: php
matrix:
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7
- php: hhvm
allow_failures:
- php: 5.3
- php: 7
- php: hhvm
script:
- phpunit --coverage-clover=coverage.clover
before_script:
- composer install
- mysql -e 'create database fork_test'
- mysql -u travis fork_test < tools/test_db.sql
- cp app/config/parameters.yml.travis app/config/parameters.yml
after_success:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
sudo: false