forked from knuckleswtf/scribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 817 Bytes
/
.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
dist: bionic
language: php
env:
global:
- SETUP=stable
- LOWEST=6.0
- COMPOSER_MEMORY_LIMIT=-1
matrix:
fast_finish: true
include:
- php: 7.4
env: SETUP=lint
name: "Lint code"
- php: 7.4
env: COMPOSER=composer.dingo.json
name: "With Dingo router"
- php: 7.4.7
- php: 8.0
- php: 7.4
env: SETUP=lowest
cache:
directories:
- $HOME/.composer/cache
install:
- if [[ $SETUP = 'stable' ]]; then travis_retry composer install; fi
- if [[ $SETUP = 'lowest' ]]; then travis_retry composer require laravel/framework:^$LOWEST; composer require laravel/lumen-framework:^$LOWEST; fi
- if [[ $SETUP = 'lint' ]]; then travis_retry composer install; composer lint; fi
script:
- if [[ $SETUP = 'lint' ]]; then exit 0; fi; composer test-parallel-ci;