-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (38 loc) · 995 Bytes
/
.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
# Config file for https://travis-ci.org/
language: php
os: linux,
dist: xenial
# Define the php versions against we want to test our code
php:
- 8.0
- 7.4
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
- nightly
# Note: Code coverage requires php-xDebug extension enabled on CI server
install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction
# Testing the app (see phpunit.xml) for configs, generating Code Coverage report
script:
- composer test -- --coverage-clover=coverage.xml
- phpunit --version
- "phpunit -c ./phpunit.xml"
#after_script:
after_success:
# Submit coverage report to https://codecov.io
- bash <(curl -s https://codecov.io/bash)
#after_failure:
# Monitor only these branches
branches:
only:
- master
- dev
# You can delete the cache using travis-ci web interface
cache:
directories:
- $HOME/.composer/cache