forked from cmfcmf/OpenWeatherMap-PHP-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (33 loc) · 965 Bytes
/
.travis.yml
File metadata and controls
40 lines (33 loc) · 965 Bytes
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
dist: trusty
sudo: false
language: php
matrix:
include:
- php: nightly
- php: 7.3
- php: 7.2
- php: 7.1
- php: 7.0
fast_finish: true
allow_failures:
- php: nightly
cache:
directories:
- "$HOME/.composer/cache"
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo date.timezone = Europe/Berlin >> $INI_FILE
- echo memory_limit = -1 >> $INI_FILE
install:
# Use composer update instead of composer install to install a working set of
# dependencies on all PHP versions.
- composer update --prefer-dist --prefer-stable
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
after_success:
# Scrutinizer
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
# CodeCov
- bash <(curl -s https://codecov.io/bash)