forked from GrahamCampbell/Laravel-DigitalOcean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (43 loc) · 1.85 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
43
44
45
46
47
48
dist: bionic
matrix:
include:
- name: PHP 7.2; Laravel 6
env:
- PHP_VERSION=7.2
- LARAVEL_VERSION=^6.0
- PHPUNIT_VERSION=^8.5
- name: PHP 7.2; Laravel 7
env:
- PHP_VERSION=7.2
- LARAVEL_VERSION=^7.0
- PHPUNIT_VERSION=^8.5
- name: PHP 7.3; Laravel 6
env:
- PHP_VERSION=7.3
- LARAVEL_VERSION=^6.0
- PHPUNIT_VERSION=^9.0
- name: PHP 7.3; Laravel 7
env:
- PHP_VERSION=7.3
- LARAVEL_VERSION=^7.0
- PHPUNIT_VERSION=^9.0
- name: PHP 7.4; Laravel 6
env:
- PHP_VERSION=7.4
- LARAVEL_VERSION=^6.0
- PHPUNIT_VERSION=^9.0
- name: PHP 7.4; Laravel 7
env:
- PHP_VERSION=7.4
- LARAVEL_VERSION=^7.0
- PHPUNIT_VERSION=^9.0
before_install:
- travis_retry docker pull registry.gitlab.com/grahamcampbell/php:$PHP_VERSION
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION require "laravel/framework:${LARAVEL_VERSION}" --no-update -n
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION require "phpunit/phpunit:${PHPUNIT_VERSION}" --dev --no-update -n
install:
- travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:$PHP_VERSION install --no-suggest --prefer-dist -n -o
script:
- docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:$PHP_VERSION --coverage-clover build/logs/clover.xml
after_script:
- travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint ocular registry.gitlab.com/grahamcampbell/php:$PHP_VERSION code-coverage:upload --format=php-clover build/logs/clover.xml