Skip to content

Commit

Permalink
Added .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier authored and bdunogier committed Dec 6, 2019
1 parent 1a94d49 commit 606f187
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@ language: php

php:
- 7.1
- 7.3

branches:
only:
- master
- dev
- /^\d.\d+$/

cache:
directories:
- $HOME/.composer/cache/files

env:
matrix:
- TARGET="phpspec"
- TARGET="codestyle"

before_script:
- COMPOSER_MEMORY_LIMIT=-1 composer install

script:
- if [ "$TARGET" == "phpspec" ] ; then ./vendor/bin/phpspec run -n; fi
- if [ "$TARGET" == "phpspec" ] ; then ./vendor/bin/phpspec run --format=pretty; fi
- if [ "$TARGET" == "codestyle" ] ; then ./vendor/bin/php-cs-fixer fix --dry-run -v --show-progress=estimating; fi

notification:
email: false

0 comments on commit 606f187

Please sign in to comment.