forked from GwendolenLynch/msgphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (33 loc) · 788 Bytes
/
.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
notifications:
email: false
language: generic
dist: xenial
services:
- docker
branches:
only:
- master
- /^\d\.\d$/
jobs:
include:
- stage: Unit tests
env: CC=true
- env: DEPS=low
- env: PHP=7.1
- stage: Code quality
script:
- make cs
- make sa
before_script:
- if [[ ${CC} == true && ${TRAVIS_PULL_REQUEST} != false ]]; then unset CC; fi
script:
- make ci-install
- if [[ ${DEPS} == low ]]; then make update-standalone-lowest; else make update-standalone; fi
- if [[ ${CC} == true ]]; then make phpunit-coverage; else make phpunit; fi
after_success:
- if [[ ${CC} == true ]]; then bash <(curl -s https://codecov.io/bash); fi
before_cache:
- rm -rf var/composer/files/msgphp
cache:
directories:
- var/