forked from triadev/LaravelPrometheusExporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (29 loc) · 1018 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
language: php
sudo: true
services:
- docker
php:
- "7.2"
- "7.3"
install:
- travis_retry composer install --no-interaction --no-suggest
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
before_script:
- mkdir -p build/logs
- ls -al
- yes | pecl install apcu apcu_bc-beta
- echo "extension=apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- composer check-style
after_success:
- travis_retry php coveralls.phar -v
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- vendor
- $HOME/.cache/composer