forked from bepsvpt/secure-headers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
150 lines (140 loc) · 3.74 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# Required to run your project under the correct environment.
language: php
notifications:
email: false
cache:
directories:
- $HOME/.composer/cache/files
# Versions of PHP you want your project run with.
matrix:
include:
- php: 7.0
env:
- TESTBENCH_VERSION=3.1.*
- PHPUNIT_VERSION=5.7.*
- php: 7.0
env:
- TESTBENCH_VERSION=3.2.*
- PHPUNIT_VERSION=5.7.*
- php: 7.0
env:
- TESTBENCH_VERSION=3.3.*
- PHPUNIT_VERSION=5.7.*
- php: 7.0
env:
- TESTBENCH_VERSION=3.4.*
- PHPUNIT_VERSION=6.5.*
- php: 7.0
env:
- TESTBENCH_VERSION=3.5.*
- PHPUNIT_VERSION=6.5.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.1.*
- PHPUNIT_VERSION=5.7.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.2.*
- PHPUNIT_VERSION=5.7.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.3.*
- PHPUNIT_VERSION=5.7.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.4.*
- PHPUNIT_VERSION=6.5.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.5.*
- PHPUNIT_VERSION=6.5.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.6.*
- PHPUNIT_VERSION=7.5.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.7.*
- PHPUNIT_VERSION=7.5.*
- php: 7.1
env:
- TESTBENCH_VERSION=3.8.*
- PHPUNIT_VERSION=7.5.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.1.*
- PHPUNIT_VERSION=5.7.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.2.*
- PHPUNIT_VERSION=5.7.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.3.*
- PHPUNIT_VERSION=5.7.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.4.*
- PHPUNIT_VERSION=6.5.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.5.*
- PHPUNIT_VERSION=6.5.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.6.*
- PHPUNIT_VERSION=7.5.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.7.*
- PHPUNIT_VERSION=7.5.*
- php: 7.2
env:
- TESTBENCH_VERSION=3.8.*
- PHPUNIT_VERSION=7.5.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.1.*
- PHPUNIT_VERSION=5.7.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.2.*
- PHPUNIT_VERSION=5.7.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.3.*
- PHPUNIT_VERSION=5.7.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.4.*
- PHPUNIT_VERSION=6.5.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.5.*
- PHPUNIT_VERSION=6.5.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.6.*
- PHPUNIT_VERSION=7.5.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.7.*
- PHPUNIT_VERSION=7.5.*
- php: 7.3
env:
- TESTBENCH_VERSION=3.8.*
- PHPUNIT_VERSION=7.5.*
install:
- composer global require hirak/prestissimo --no-suggest --no-interaction --optimize-autoloader
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" "phpunit/phpunit:${PHPUNIT_VERSION}" --dev --no-update --no-interaction
- composer update --no-suggest --no-interaction --prefer-dist --optimize-autoloader
# Commands to be run before your environment runs.
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
# Commands you want to run that will verify your build.
script: vendor/bin/phpunit
# Commands to be run after your environment runs.
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.3" && "$TESTBENCH_VERSION" == "3.8.*" ]; then ./cc-test-reporter after-build --coverage-input-type clover --id $CC_TOKEN --exit-code $TRAVIS_TEST_RESULT; fi