-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (24 loc) · 1.06 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
# Attogram Router - https://github.com/attogram/router
# Travis CI - https://travis-ci.org/attogram/router
language: php
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
matrix:
fast_finish: true
before_script:
- composer install
script:
- if find examples/ -name "*.php" -exec php -l {} 2>&1 \; | grep "error,"; then exit 1; fi;
- if find src/ -name "*.php" -exec php -l {} 2>&1 \; | grep "error,"; then exit 1; fi;
- if find tests/ -name "*.php" -exec php -l {} 2>&1 \; | grep "error,"; then exit 1; fi;
- if find vendor/ -name "*.php" -exec php -l {} 2>&1 \; | grep "error,"; then exit 1; fi;
- if [ $TRAVIS_PHP_VERSION == "7.0" ]; then composer require phpunit/phpunit ~6; fi
- if [ $TRAVIS_PHP_VERSION == "7.1" ]; then composer require phpunit/phpunit ~7; fi
- if [ $TRAVIS_PHP_VERSION == "7.2" ]; then composer require phpunit/phpunit ~8; fi
- if [ $TRAVIS_PHP_VERSION == "7.3" ]; then composer require phpunit/phpunit ~9; fi
- if [ $TRAVIS_PHP_VERSION == "7.4" ]; then composer require phpunit/phpunit ~9; fi
- vendor/bin/phpunit tests;