forked from sstalle/php7cc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 1.62 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
language: php
sudo: required
dist: precise
cache:
directories:
- "$HOME/.composer/cache"
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
env:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
before_install:
- travis_retry composer self-update
install:
- composer update $COMPOSER_FLAGS --no-interaction
script:
- composer test -- --coverage-text --coverage-clover=coverage.clover
- composer cs -- --dry-run --diff
after_script:
- if [[ $COMPOSER_FLAGS != '--prefer-lowest' ]]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
before_deploy:
- "composer require kherge/box:~2.5"
- "composer update --prefer-lowest --no-dev"
- "./vendor/bin/box build"
deploy:
provider: releases
api_key:
secure: nLfMzQ+8qXnYWFEVuwRjRoj8acbXGzeQyxnmDqcjM/AMu+BaySYiyhWmZBP/arwVwqA3C2Xiwl0lH17yeqZzURcQBht9gAr2XwjUyHzEkZK7usw5jZhVMyY5ZNx1E3pWclgiEoQUh/c9pyHZAVSOwFgrRx7bzvse6JOeAxuoVWujms32hK7UZ0dpMiueVWXrxD3OdzEbOkkJC6vswIeJzQQi4xc5RJ9uWopt+t32FbWBFW2n8eazCduPvNTopIDcxxRgte6DdC/f/nK77qQL4IL8kQBZ//qWdeXX8y7qWC76XPwCQTf6VD2Dmc8UzIQ0gbp5ZfwXg3IW9Dx7Pn89P0FES6ZwS2TsQsk0KKFkAxhGayLHCpSwCxcYKc7Pb5CCIHFMNko2k05iBwa+aw3OaxffOu5AKV5lYUuO5TNzB6eHUhLuUXDeJIbpVrq749q+dK83Eotq5CBBinLu0EA1UVYQgEisfotbSaOnmhMZ3UAT0SuuRZItwOvaMl8UIR+b0x0ERacK6oGbfwfjJ/bTURXVPzM8e4SxfdqkTs2CYpPyIYgV/8HfLbCtvd1JrOPmjTM7rUOxQ8qREfSNfcsF/k1MGXbmHAf4IVgHVKWnapFzySKCFYUOqnnwb7XmWkJgrL476rAQFkE91P6oR/lzeDX3x45l3tDsvKdYl4mAqus=
file: php7cc.phar
skip_cleanup: true
on:
repo: sstalle/php7cc
php: 5.6
tags: true
condition: "$COMPOSER_FLAGS = --prefer-lowest"