forked from mpociot/laravel-apidoc-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 1.01 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
dist: bionic
language: php
env:
global:
- SETUP=stable
matrix:
fast_finish: true
include:
- php: 7.4
env: COMPOSER=dingo.composer.json
name: "With Dingo router"
- php: 7.4
env: SETUP=lint
name: "Lint code"
- php: 7.2
- php: 7.2
env: SETUP=lowest
- php: 7.3
- php: 7.3
env: SETUP=lowest
- php: 7.4
- php: 7.4
env: SETUP=lowest
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; travis_retry composer lint; fi
script:
- if [[ $SETUP = 'lint' ]]; then exit 0; fi; composer test-ci;