forked from netgen/TagsBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 loc) · 1.45 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
50
51
52
53
54
55
language: php
cache:
directories:
- vendor
matrix:
# mark as finished before allow_failures are run
fast_finish: true
include:
- php: 5.6
env: CONFIG="phpunit.xml" COVERAGE="unit"
- php: 5.6
env: CONFIG="phpunit-integration-legacy.xml" COVERAGE="integration"
- php: 7.1
env: CONFIG="phpunit.xml" COVERAGE="unit"
- php: 7.1
env: CONFIG="phpunit-integration-legacy.xml" COVERAGE="integration"
- php: 7.2
env: CONFIG="phpunit.xml" COVERAGE="unit"
- php: 7.2
env: CONFIG="phpunit-integration-legacy.xml" COVERAGE="integration"
# test only master (+ pull requests)
branches:
only:
- master
# make sure to update composer to latest available version
before_install:
- phpenv config-add travis.php.ini
- composer self-update
# install dependencies
# removing vendor/ocramius as generated versions can clash with install process due to usage of prefer-source
install: rm -rf vendor/ocramius && travis_wait composer install --prefer-source
# execute phpunit as the script command
script:
- ./vendor/bin/phpunit -d memory_limit=-1 --colors -c $CONFIG --coverage-clover=coverage.xml
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 30
# we don't need sudo
sudo: false
# send coverage to codecov.io
after_success:
- bash <(curl -s https://codecov.io/bash) -F $COVERAGE