forked from TYPO3/Surf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
114 lines (103 loc) · 3.78 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
addons:
apt:
packages:
- parallel
notifications:
slack:
secure: N2BzbmdyPm5PdIA8/m/wD/i90sUryPAUTmlPs7tSanKDyhoFC1K4wMCec696UEmW4fqmT6orCNSL1aP0pROli2BOhcvhHqH0YN9cTQaM+tjw3mAtSUE2b1Z2nfBOwZev1yXVufbauoG/lYGXtl7Bb1K9NMNiJcMY/6v3AMkVFIYsW76CPRXHqwsG6QiTDfmkNFUl3gUO1vBZ+Pv5Tq0QBDKNNpH5CSFd41AoFY/CNDYIXBeBpzExnpk2jJ2njzJnhsL172R6eFb0mO4BmfFy9sozS7lBuhG3fwscVcrNapreG6SpK0LE7g39PVMT0+r5Wx83U7moz4poorDQV61lS2eR3SeKTUP2aou54HjDQRkKce5dWhdqcGG6unTTsh3SIeH6BtRql3LzrIXlcIfGHus7gR8kpjALOWNoNBHqly7IxVL/gdsblWehFyy6jE6jKgPuzzE3VOWwyAYA+xGKwWTngJ1REduEdlO7dTxPC5LjHxKTUo2VBcCDhAAJWu6OT8FVsSvwYqI+PxB38Tf9e8Sf8PksPOGlbzgMaZ0hpDXtFrKD1X32HmeLXZmiSwNea4Ws6DeGuvzcTfXwZ0nPX8J6Mpn6lHe/ASueMgJxh2xnk5I5rvQh8PuoIgN5r+IqIxK/2wX8B2PuQ2rp8C77dATerVpuGzoMzvj9V4wNVhw=
env:
global:
secure:
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer --version
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
jobs:
include:
- &lint
stage: test
php: 7.2
env: PHP Lint
before_install: skip
install: skip
branches:
except:
- /^latest/
script: find . -name \*.php ! -path "./vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- <<: *lint
php: 7.1
- <<: *lint
php: 7.0
- <<: *lint
php: 5.6
- &phpunit
stage: test
php: 7.2
env: PHPUnit
before_script: composer install
script: vendor/bin/phpunit Tests/Unit/
branches:
except:
- /^latest/
- <<: *phpunit
php: 7.1
- <<: *phpunit
php: 7.0
- <<: *phpunit
php: 5.6
before_script: composer update --with-dependencies phpunit/phpunit
- <<: *phpunit
php: 7.2
env: PHPUnit=latest
before_script:
- composer install
- composer update
- &release
stage: release
php: 7.2
branches:
except:
- /^latest/
before_script:
- composer global require kherge/box:^2.7
- composer install --no-ansi --no-interaction --no-dev --no-progress --classmap-authoritative
- mkdir bin
script:
- php -d phar.readonly=0 $HOME/.composer/vendor/bin/box build
- php bin/surf.phar --version
deploy: &github
provider: releases
api_key:
secure: aSVx7EqVUkp+RNH4suLAtN5uXW/UpkmWD1zUlzf5gjiikF0QkombwElc74T2vD1vyFDOLkL/Mm2jRPbpuZmP6ZU8Tb8rlCYAo/5015362dloJbzZwY82VxEpTBjZ3gEcJdpAKXLdaZPiILnCTkQ46uSk8uKLVIhf4b4/FnPlB4z6OjVM32ZE/F0LZxZ+B5K3wvky5PuQiUlT8EDkAbZwNi694gwA/x9HVF77Z6wopkYxXzwno0AxLGBYShtwBQ1tts3IBqNxDsv8MuYtFmVHAUkDZHiQcsThpBsPOmybavir5UlfHbnqlnHlTUIW43+aQYCsvXwVYgva9Gmc9tOHaGn2ed9QyANguXAMmFQSG+NvWcAcVyBJZ7Y5s/WGkxLMGsdj2xiS+1p0h5lDjcckdubuY/CD0+prmNQDPlvnXAn/XtYnN7UvLmhMZZ0S1oMKuCwQv8DeeJPCi/1Dn3B8YJpD3GkJdLJxY14HcVN+ztF/V+J621vqYaUfhN9bRrOqwgYZOmUDVjj4WAQ0VpoFJzCjH2IHz4+yqzHO5GrPO/Ey2+peq2jt1VavDcfc0Cdqe3FLfRQDmJexDjjR1SaR6A4NhoPBtWjOG0EMDrJpvYm6lIJ5MkmZ2st5TvkZgXtkXAjKTvCF9XIrophaBvHZFpaFnb0HhYsH7HyWQ43X8uA=
file: bin/surf.phar
skip_cleanup: true
draft: true
on:
repo: TYPO3/Surf
tags: true
- <<: *release
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "t3easy"
- git config --local user.email "3628035+t3easy@users.noreply.github.com"
- git tag -a -m -f latest
deploy:
<<: *github
name: master
prerelease: true
draft: true
overwrite: true
on:
repo: TYPO3/Surf
branch: master
allow_failures:
- php: 7.2
env: PHPUnit=latest
#after_success:
# - .travis/push-documentation.sh