forked from quantum-journal/o3po
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
20 lines (20 loc) · 998 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
script:
- make run-tests
after_success:
- bash <(curl -s https://codecov.io/bash)
before_install:
- sudo apt-get install -y libimage-exiftool-perl
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then composer require --dev --no-update phpunit/phpunit ~5; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then composer require --dev --no-update phpunit/phpunit ~5; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then composer require --dev --no-update phpunit/phpunit ~7; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then composer require --dev --no-update phpunit/phpunit ~8; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]]; then composer require --dev --no-update phpunit/phpunit 8.0.2; fi
install:
- if [ $(echo "${TRAVIS_PHP_VERSION:0:3} <= 7.3" | bc -l) -eq 1 ]; then travis_retry composer install --no-interaction --ignore-platform-reqs && export PHPUNITCOMMAND=vendor/bin/phpunit; fi #PHPUNITCOMMAND is used in Makefile