This repository was archived by the owner on Dec 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (40 loc) · 1.21 KB
/
.travis.yml
File metadata and controls
53 lines (40 loc) · 1.21 KB
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
49
50
51
52
53
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- setup=basic
- coverage=false
sudo: false
#branches:
# except:
before_install:
- if [[ $coverage = 'false' ]]; then phpenv config-rm xdebug.ini || true; fi
- composer global require hirak/prestissimo --update-no-dev
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable --prefer-lowest; fi
#before_script:
# - chmod 777 -R storage
script:
- if [[ $coverage = 'true' ]]; then composer test-cover; else composer test; fi
- composer analyze
- npm install
after_success:
- if [[ $coverage = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
matrix:
include:
- php: 7.2
env: coverage=true
- php: 7.2
env: setup=lowest
- php: 7.2
env: setup=stable
- php: 7.3
- php: 7.3
env: setup=lowest
- php: nightly
allow_failures:
- php: nightly