forked from briannesbitt/Carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (57 loc) · 2.13 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: php
cache:
apt: true
directories:
- $HOME/.composer/cache
addons:
apt:
packages:
- language-pack-ar
- language-pack-fr
- language-pack-sr
- language-pack-zh-hans
- language-pack-zh-hant
- language-pack-yo
env:
global:
- setup=basic
- coverage=false
- phpstan=false
sudo: false
before_install:
- if [[ $coverage = 'false' ]]; then phpenv config-rm xdebug.ini; fi
install:
- if [[ $phpstan = 'true' ]]; then travis_retry composer require --no-update --dev phpstan/phpstan; fi
- 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
script:
- composer phpunit
- if [[ $phpstan = 'true' ]]; then composer phpstan; fi
after_success:
- if [[ $coverage = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
branches:
only:
- gh-pages
- /.*/
matrix:
include:
- php: 7.1
- php: 7.1
env: setup=lowest
- php: 7.1
env: setup=stable
- php: 7.2
- php: 7.2
env: setup=lowest
- php: 7.2
env:
- setup=stable
- coverage=true
- phpstan=true
notifications:
slack:
secure: mdZBxjp18TYD4hOXKrj2mayveaUBj2fcgiVb1LOv1fiuonzhNwT5I5n795BNGpl1z76I8ZzD3MICbvigXs8QGMBkTnCriSEZNuyQUlAR972q+h02HmKM/j0d90S3tGbPh6PFGh0oo7ZCt0TAlHtNTGL0uyOwzJ26A+Sa5zA8HzN+y44KXTyMYRE/RXDkKB8460W+UFOVXsFw3pdXqeW6CbQY4A8hR8F0veBThfqrE/qXtmQ0MR97uuaDQDbJAiJuVe3DzIOcAdYwuqYbm3sgsomqsXONX7LyrrqXPguNDyM7XwkZUP6t9Nqvxz94HIJkYWASFNgOyysxOYqhgtAG7/xkT77D63IzxcsxLtfNSzOJwaP7xE3YHog082MR0ywdpZpjklmDdPhhiDfGaGRSHGJCqEMcW4QjFibLm3pnvxXoeTyY4Zx0hkCRqDlTYq9IMX6i3fVF4dZ+egOSJrd9BDXlnkyNy2C3z/5Ee6hfVoD53FT4l8zvRc+ip2tFQOzE1O81o8OYHOsF4DfcE0u1B/+ZeYihuFbJ8DMIBv8bUlZ76sQLQD0FAPzeKURDB2lTlUFODUH8ewPEuGbH6Bbao5bFoeWKvC6xTCuanpeU1xwJrzSvzMljqcEyZmOoqST776wCwS/qjY9yh8344VTZYHqGVY/L5DxjTbvSKpyHj2k=