-
Notifications
You must be signed in to change notification settings - Fork 403
/
.travis.yml
66 lines (59 loc) · 1.87 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
56
57
58
59
60
61
62
63
64
65
66
language: php
sudo: false
matrix:
include:
- php: 5.6
env:
- PHPUNIT_VERSION=5.6.*
- TEST_SUITE=samples
dist: trusty
- php: 7.0
env:
- PHPUNIT_VERSION=5.6.*
- TEST_SUITE=samples
dist: trusty
- php: 7.1
env:
- PHPUNIT_VERSION=5.7.*
- TEST_SUITE=samples
dist: trusty
- php: 7.2
env:
- PHPUNIT_VERSION=8.5.*
- TEST_SUITE=samples
dist: bionic
- php: 7.3
env:
- PHPUNIT_VERSION=9.5.*
- TEST_SUITE=samples
dist: bionic
- php: 7.4
env:
- PHPUNIT_VERSION=9.5.*
- TEST_SUITE=samples
dist: bionic
- php: 8.0
env:
- PHPUNIT_VERSION=9.5.*
- TEST_SUITE=samples
dist: bionic
before_install:
# execute all of the commands which need to be executed
# before installing dependencies
- composer validate # make sure that our composer.json file is valid for packaging
install:
# install all of the dependencies we need here
- pecl install xmldiff
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update
- composer update --prefer-dist
before_script:
# execute all of the commands which need to be executed
# before running actual tests
- git submodule update --remote --recursive
script:
# execute all of the tests or other commands to determine
# whether the build will pass or fail
- if [[ "$TEST_SUITE" == "samples" ]]; then phpenv config-rm xdebug.ini; cp -R lib sample-code-php/; cp -R vendor sample-code-php/; cd sample-code-php; vendor/phpunit/phpunit/phpunit TestRunner.php .; fi
after_script:
# - if [[ "$TEST_SUITE" == "coverage" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
# - if [[ "$TEST_SUITE" == "coverage" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi