Skip to content

Commit

Permalink
add travis config file
Browse files Browse the repository at this point in the history
  • Loading branch information
i-iman-i committed Feb 15, 2020
1 parent e3d2a6d commit 462d041
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: php

sudo: false

matrix:
include:
env: LARAVEL_VERSION=5.5.*
- php: 7.2
env: LARAVEL_VERSION=5.6.*
- php: 7.2
env: LARAVEL_VERSION=5.7.*
- php: 7.2
env: LARAVEL_VERSION=5.8.*
- php: 7.2
env: LARAVEL_VERSION=6.*

before_install:
- if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'hhvm.jit = false' >> /etc/hhvm/php.ini ; fi
- composer self-update --stable -n
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update -n

install:
- travis_retry composer install --no-suggest --prefer-dist -n -o

script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml;

after_script:
- wget https://scrutinizer-ci.com/ocular.phar;
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml;
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 462d041

Please sign in to comment.