-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (38 loc) · 1.1 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
44
45
46
47
48
49
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
env:
- DB=MYSQL CORE_RELEASE=3.6
matrix:
include:
- php: 5.6
env: DB=MYSQL PDO=1 CORE_RELEASE=3.2
- php: 5.6
env: DB=MYSQL PDO=1 CORE_RELEASE=3.3
- php: 5.6
env: DB=MYSQL PDO=1 CORE_RELEASE=3.4
- php: 5.6
env: DB=MYSQL PDO=1 CORE_RELEASE=3.5
before_install:
- pip install --user codecov
before_script:
- composer self-update || true
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
- composer install
script:
- vendor/bin/phpunit --coverage-clover=coverage.clover sitetree-labels/tests
after_success:
- mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/
- cd ~/build/$TRAVIS_REPO_SLUG
# Upload Coverage to Scrutinizer
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# Upload test coverage to codecov
- codecov