-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (23 loc) · 858 Bytes
/
.travis.yml
File metadata and controls
28 lines (23 loc) · 858 Bytes
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
# Required to run your project under the correct environment.
language: php
# Versions of PHP you want your project run with.
php:
- 7.1
- 7.2
# Commands to be run before your environment runs.
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- pear install pear/PHP_CodeSniffer
- phpenv rehash
# Commands you want to run that will verify your build.
script:
- ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/*
- phpcs --standard=PSR2 --report=summary ./sdk/*
- phpcs --standard=PSR2 --report=summary ./tests/*
# 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.
# Customize when the notification emails are sent.
notifications:
on_success: never
on_failure: always