forked from SpartnerNL/Laravel-Excel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 1.14 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
services:
- mysql
matrix:
fast_finish: true
include:
# Laravel 5.5
- php: 7.0
env: LARAVEL=5.5.* TESTBENCH=3.5.* PHPUNIT=~6.0 COVERAGE=0
- php: 7.1
env: LARAVEL=5.5.* TESTBENCH=3.5.* PHPUNIT=~6.0 COVERAGE=0
- php: 7.2
env: LARAVEL=5.5.* TESTBENCH=3.5.* PHPUNIT=~6.0 COVERAGE=0
# Laravel 5.6
- php: 7.1
env: LARAVEL=5.6.* TESTBENCH=3.6.* PHPUNIT=~7.0 COVERAGE=0
- php: 7.2
env: LARAVEL=5.6.* TESTBENCH=3.6.* PHPUNIT=~7.0 COVERAGE=1
before_install:
- composer self-update --stable --no-interaction
- composer require orchestra/testbench:$TESTBENCH phpunit/phpunit:$PHPUNIT --no-update --no-interaction --dev
- mysql -e 'CREATE DATABASE IF NOT EXISTS laravel_excel;'
install:
- travis_retry composer install --no-suggest --no-interaction
script:
- if [ "$COVERAGE" == "1" ]; then vendor/bin/phpunit --verbose --configuration phpunit.xml.dist --coverage-clover=coverage.xml; fi
- if [ "$COVERAGE" == "0" ]; then vendor/bin/phpunit --verbose --configuration phpunit.xml.dist; fi
after_success:
- bash <(curl -s https://codecov.io/bash)