This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
forked from moontoast/math
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
71 lines (65 loc) · 1.42 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
language: php
os: linux
jobs:
include:
- php: 5.3
dist: precise
- php: 5.3
dist: precise
env:
- BCMATH="off"
- php: 5.4
dist: trusty
- php: 5.4
dist: trusty
env:
- BCMATH="off"
- php: 5.5
dist: trusty
- php: 5.5
dist: trusty
env:
- BCMATH="off"
- php: 5.6
- php: 5.6
env:
- BCMATH="off"
- php: 7.0
- php: 7.0
env:
- BCMATH="off"
- php: 7.1
- php: 7.1
env:
- BCMATH="off"
- php: 7.2
- php: 7.2
env:
- BCMATH="off"
- php: 7.3
- php: 7.3
env:
- BCMATH="off"
- php: 7.4
- php: 7.4
env:
- BCMATH="off"
before_install:
- if [[ $BCMATH == "off" ]]; then
export PHP_BUILD_CONFIGURE_OPTS="--disable-bcmath";
git clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build;
travis_wait phpenv install --force `php -r "echo PHP_VERSION;"`;
phpenv rehash;
phpenv global `php -r "echo PHP_VERSION;"`;
fi
- php -i | grep bcmath
install:
- travis_retry composer install --no-interaction --prefer-dist
before_script:
- composer install -n
script:
- ./vendor/bin/parallel-lint src tests
- ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src tests --standard=psr2 -sp
after_script:
- php vendor/bin/coveralls