forked from voku/Stringy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (45 loc) · 1.65 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
language: php
sudo: false
php:
- nightly
git:
depth: 2
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: nightly
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
before_script:
- php --version
- mkdir -p $(dirname ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini)
- touch ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "php-config -> orig"
- cat ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sed -i.bkp "s/^extension\ =\ mbstring.so$/#extension = mbstring.so/" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sed -i.bkp "s/^extension\ =\ intl.so$/#extension = intl.so/" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sed -i.bkp "s/^extension\ =\ iconv.so$/#extension = iconv.so/" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "php-config -> new"
- cat ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- wget https://scrutinizer-ci.com/ocular.phar
- travis_retry composer self-update
- travis_retry composer require satooshi/php-coveralls
- if [ "${TRAVIS_PHP_VERSION:0:3}" != 7.0 ]; then travis_retry composer require phpstan/phpstan; fi
- travis_retry composer install --no-interaction --prefer-source
- composer dump-autoload -o
script:
- mkdir -p build/logs
- vendor/bin/phpunit -c phpunit.xml.dist
- if [ "${TRAVIS_PHP_VERSION:0:3}" != 7.0 ]; then vendor/bin/phpstan analyse; fi
after_script:
- php vendor/bin/coveralls -v
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- bash <(curl -s https://codecov.io/bash)