forked from Roave/BackwardCompatibilityCheck
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
70 lines (54 loc) · 1.5 KB
/
.travis.yml
File metadata and controls
70 lines (54 loc) · 1.5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: php
sudo: false
php:
- 7.3
- 7.4
- nightly
matrix:
allow_failures:
- php: 7.4
- php: nightly
before_script:
- if ! git show-ref --quiet master; then
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* ;
git fetch --tags ;
git branch master origin/master ;
fi
- composer install
# see https://github.com/travis-ci/travis-ci/issues/4942#issuecomment-159132444
git:
depth: 99999
deploy:
provider: releases
api_key:
secure: $DEPLOY_TOKEN_SECURE
file: dist/roave-backward-compatibility-check.phar
skip_cleanup: true
on:
tags: true
jobs:
include:
- stage: Static Analysis (src) with Psalm
script: vendor/bin/psalm
- stage: Static analysis (src) with phpstan
script: vendor/bin/phpstan analyse
- stage: Test
script: vendor/bin/phpunit
- stage: Code Coverage
before_script:
- wget https://scrutinizer-ci.com/ocular.phar
- composer install
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
- stage: Coding Standards
script: vendor/bin/phpcs
- stage: Mutation Tests
script: vendor/bin/infection --min-msi=100 --min-covered-msi=100
- stage: Verify BC Breaks
script: bin/roave-backward-compatibility-check --from=master --to=HEAD
- stage: Build release PHAR
script: ./build-phar.sh
cache:
directories:
- $HOME/.composer/cache