forked from PHP-FFMpeg/PHP-FFMpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 1.16 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
language: php
dist: trusty
branches:
only:
- master
- v1.x
cache:
directories:
- $HOME/.composer/cache
- $HOME/.cache
matrix:
include:
- php: 5.4
env:
- PHPUNIT_VERSION=4
- COMPOSER_FLAGS="--prefer-lowest"
- php: 5.4
env:
- PHPUNIT_VERSION=4
- php: 5.5
env:
- PHPUNIT_VERSION=4
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
before_install:
- sudo add-apt-repository ppa:mc3man/trusty-media -y
- sudo apt-get update -q
- composer self-update
- echo "$PHPUNIT_VERSION"
- |
if [ "$PHPUNIT_VERSION" ]; then
composer remove symfony/phpunit-bridge --dev
wget -O phpunit "https://phar.phpunit.de/phpunit-$PHPUNIT_VERSION.phar"
chmod +x phpunit
fi;
- |
if [ "$COMPOSER_FLAGS" == "--prefer-lowest" ]; then
composer require "roave/security-advisories" dev-master --no-update
fi;
install:
- sudo apt-get install -y ffmpeg
- composer update --prefer-dist $COMPOSER_FLAGS
script:
- |
if [ "$PHPUNIT_VERSION" ]; then
./phpunit --verbose
else
./vendor/bin/simple-phpunit --verbose
fi;