Skip to content

Commit

Permalink
Simplify Travis build matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Feb 27, 2020
1 parent bd9e3d8 commit 77b0473
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .travis.yml
Expand Up @@ -8,44 +8,47 @@ php:
- 7.3
- 7.4

env:
- DBASE=no
- DBASE=yes

matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 7.1
env: DBASE=yes
- php: 7.2
env: DBASE=yes
- php: 7.3
env: DBASE=yes
- php: 7.4
env: DBASE=yes
- php: 7.1
env: DOCS=yes
name: "Documentation"
script: vendor/bin/sami.php --no-interaction update ./ci/sami-config.php
- php: 7.1
name: phpcs
name: "Coding standard"
script: vendor/bin/phpcs
- php: nightly
env: DBASE=no
install:
- composer install --no-interaction --ignore-platform-reqs
- php: nightly
env: DBASE=yes
install:
- composer install --no-interaction --ignore-platform-reqs

install:
before_install:
- |
if [[ "$DBASE" == "yes" ]]; then
pecl channel-update pecl.php.net
pecl install dbase
fi
install:
- composer install --no-interaction

script:
- ./vendor/bin/phpunit --configuration phpunit.xml.dist
- vendor/bin/phpunit --configuration phpunit.xml.dist
- cd examples
- php create_shapefile.php
- php read_point.php > /dev/null
- php read_polygon.php > /dev/null
- cd ..
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/sami.php --no-interaction update ./ci/sami-config.php ; fi

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit 77b0473

Please sign in to comment.