forked from brefphp/bref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 1.25 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
language: php
notifications:
email:
on_success: never
services:
- docker
cache:
directories:
- $HOME/.composer/cache
- $HOME/.cache/pip
jobs:
include:
- name: 'PHPUnit with PHP 7.2'
php: 7.2
before_script: composer install -n
script: vendor/bin/phpunit --testsuite small
- name: 'PHPUnit with PHP 7.3'
php: 7.3
before_script: composer install -n
script: vendor/bin/phpunit --testsuite small
- name: 'PHPUnit with lowest dependencies'
php: 7.2
before_script: composer update --prefer-lowest --prefer-stable -n
script: vendor/bin/phpunit --testsuite small
- name: 'Runtime tests'
php: 7.3
before_script:
- composer install -n
- pip install --user awscli
- pip install --user aws-sam-cli
script: travis_retry vendor/bin/phpunit --testsuite runtimes
# This job is testing the runtimes that are published online, it doesn't make sense to run it on
# pull requests and branches, it's more a watchdog than a CI job
if: branch = master AND fork = false
- name: 'PHPStan'
php: 7.3
before_script: composer install -n
script: vendor/bin/phpstan analyse