forked from knuckleswtf/scribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 1.05 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
dist: bionic
language: php
env:
global:
- SETUP=stable
- COMPOSER_MEMORY_LIMIT=-1
matrix:
fast_finish: true
include:
- php: 7.4
env: COMPOSER=composer.dingo.json
name: "With Dingo router"
- php: 7.4
env: SETUP=lint
name: "Lint code"
- php: 7.3
- php: 7.3
env: SETUP=lowest
- php: 7.4
# No lowest for 7.4 because the lowest we support (Laravel 5.8) doesn't support 7.4
cache:
directories:
- $HOME/.composer/cache
before_install:
- travis_retry composer self-update
install:
- if [[ $SETUP = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
- if [[ $SETUP = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi
- if [[ $SETUP = 'lint' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; composer lint -- --memory-limit 1G; fi
script:
- if [[ $SETUP = 'lint' ]]; then exit 0; fi; composer test-parallel-ci;