Skip to content

Commit

Permalink
Run analyse only once on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
teohhanhui committed Apr 17, 2019
1 parent c486038 commit e6966b9
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
language: php

php:
- 7.2
- 7.3

env:
- SYLIUS_VERSION=1.3.*
- SYLIUS_VERSION=1.4.*
jobs:
include:
- php: '7.2'
env: SYLIUS_VERSION=1.3.*
- php: '7.2'
env: SYLIUS_VERSION=1.4.*
- php: '7.3'
env: SYLIUS_VERSION=1.3.*
- php: '7.3'
env: SYLIUS_VERSION=1.4.* ANALYSE=y

cache:
directories:
Expand All @@ -30,7 +33,9 @@ before_script:
script:
- composer validate --strict

- composer analyse
- if [ "$ANALYSE" = 'y' ]; then
composer analyse
fi

- vendor/bin/phpspec run --format dot -vvv --no-interaction
- vendor/bin/phpunit

0 comments on commit e6966b9

Please sign in to comment.