-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml.disabled
87 lines (80 loc) · 1.93 KB
/
.travis.yml.disabled
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
os: linux
language: php
cache:
directories:
- $HOME/.composer/cache
- $COMPOSER_CACHE_DIR
php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
stages:
- test
- deploy release
- deploy docs
- code coverage
before_install:
- composer self-update
- if [[ $TEST_COVERAGE != true ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
install:
- travis_retry composer install -n --prefer-source
- if [[ $TEST_COVERAGE == true ]]; then travis_retry composer test:coverage:install || return 0 ; fi
script: composer test
jobs:
fast_finish: true
allow_failures:
- php: 7.4
- php: 8.0
- stage: code coverage
include:
- script: composer test:phar
name: "Build phar and run it"
php: 7.2
- stage: code coverage
php: 7.2
if: (NOT type IN (pull_request)) AND (branch = master)
env:
- TEST_COVERAGE=true
before_script:
- mkdir -p build/logs
script:
- travis_retry composer test:coverage
after_success:
- travis_retry composer test:coverage:upload
- bash <(curl -s https://codecov.io/bash)
# deploy cecil.phar
- stage: deploy
php: 7.2
if: tag IS present
script: composer box
deploy:
# to GitHub release
- provider: releases
edge: true
token: $GH_TOKEN
file: "dist/cecil.phar"
overwrite: true
on:
branch: master
tags: true
# to Cecil's website
- provider: script
edge: true
script: bash scripts/deploy-dist.sh
on:
branch: master
tags: true
# deploy (Markdown) documentation
- stage: deploy docs
php: 7.2
if: (NOT type IN (pull_request)) AND (branch = master)
install: skip
script: skip
deploy:
- provider: script
edge: true
script: bash scripts/deploy-docs.sh
on:
branch: master