forked from consolidation/robo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.11 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
dist: trusty
language: php
branches:
# Only test the 2.x branch and SemVer tags.
only:
- 3.x
- 2.x
- 1.x
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
matrix:
fast_finish: true
include:
- php: 7.4
env: 'DEPENDENCIES=highest'
- php: 7.4
- php: 7.3
- php: 7.2
- php: 7.1
env: 'SCENARIO=symfony4'
- php: 7.1
env: 'SCENARIO=symfony4 DEPENDENCIES=lowest'
sudo: false
cache:
directories:
- $HOME/.composer/cache
install:
- '.scenarios.lock/install "${SCENARIO}" "${DEPENDENCIES}"'
script:
- composer test
after_success:
- travis_retry php vendor/bin/php-coveralls -v
# Prior to a deploy, build a fresh robo.phar
before_deploy:
- ./robo phar:build
# Deploy instructions set up via `travis setup releases` per
# https://docs.travis-ci.com/user/deployment/releases
deploy:
provider: releases
api_key:
secure: EdmB1nW5gj5nggYfmHv20enSgvRIAl1PIWV5GKmkxAJwuummh3UqdI7z0ecTGdw2IBgJx9lizNvqhcWjXbpNhE9VaaT1sHFCKv4Zust6sLb9bneK3oLRdJk2wemfrrZQpdH900zA0o7b3CHVth8UhkrCB4FXVDjUW13K061EXG8=
file: robo.phar
skip_cleanup: true
on:
tags: true