-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
103 lines (91 loc) · 2.2 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# CryptoManana Framework Travis CI YAML Configuration
language: php
os: linux
dist: xenial
env:
- USE_OPCACHE=1
php:
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
jobs:
fast_finish: true
allow_failures:
- php: 5.5
- php: 8.3.0
include:
- php: 7.4
dist: focal
env:
- USE_OPCACHE=1
- php: 8.0
dist: focal
env:
- USE_OPCACHE=1
- php: 8.1
dist: focal
env:
- USE_OPCACHE=1
- php: 8.2
dist: jammy
addons:
apt:
update: true
packages:
- libonig-dev
env:
- USE_OPCACHE=1
- php: 8.3.0
dist: bionic
addons:
apt:
update: true
packages:
- libonig-dev
env:
- USE_OPCACHE=1
- php: 5.5
dist: trusty
env:
- USE_OPCACHE=1
cache:
timeout: 3600
directories:
- vendor
- $HOME/.composer/cache
git:
depth: 5
quiet: true
branches:
only:
- master
- staging
before_script:
- php -m
- if [ "$USE_OPCACHE" == 1 ]; then
echo 'opcache.enable=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini;
echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini;
fi
- php -i | grep -i 'OpenSSL Library'
- php -i | grep -i 'opcache.enable'
- echo 'sys_temp_dir=/tmp' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'upload_tmp_dir=/tmp' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry composer validate
- travis_retry composer install --no-interaction --prefer-dist
- if [[ "$TRAVIS_PHP_VERSION" =~ ^(7.3|7.4|8.0|8.1|8.2|8.3.0|master)$ ]]; then
echo 'xdebug.mode=coverage' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini;
cp phpunit.xml.dist phpunit.xml;
vendor/bin/phpunit --migrate-configuration;
fi
script:
- make check-system
- make check-build
- make coverage
after_script:
- if [[ "$TRAVIS_PHP_VERSION" =~ ^(5.6|7.4)$ ]]; then
CLOVER=coverage/clover.xml;
wget https://scrutinizer-ci.com/ocular.phar;
php ocular.phar code-coverage:upload --format=php-clover ${CLOVER};
fi