forked from Kanti/hub-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.08 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
# Required to run your project under the correct environment.
language: php
dist: trusty
addons:
code_climate:
repo_token: 857af03b99f4c907a8cf99f7e80f4beb4df5977847fad17445c6f3a7110d83a7
# allow_failures: Allow this build to fail under the specified environments.
# fast_finish: If your build fails do not continue trying to build, just stop.
matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true
include:
- php: 5.4
- php: 5.5
env: CODECLIMATE=yes
- php: 5.6
- php: 7.0
- php: 7.1
- php: hhvm
- php: nightly
# Commands to be run before your environment runs.
install:
- composer install --dev --no-interaction --prefer-dist
- phpenv rehash
# Commands you want to run that will verify your build.
script:
- ./vendor/bin/phpcs --standard=PSR2 ./src ./tests -n
- ./vendor/bin/phpcpd ./src ./tests -n
- ./vendor/bin/phpunit -c tests/phpunit.xml
- >
if [[ "$CODECLIMATE" == "yes" ]]; then
CODECLIMATE_REPO_TOKEN=857af03b99f4c907a8cf99f7e80f4beb4df5977847fad17445c6f3a7110d83a7 ./vendor/bin/test-reporter -vvv
fi