-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (35 loc) · 880 Bytes
/
.travis.yml
File metadata and controls
42 lines (35 loc) · 880 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Travis CI (MIT License) configuration file
# @link https://travis-ci.org/
# @link https://github.com/jrfnl/make-phpcs-work-for-you/tree/master/travis-examples
# Only run on the following branches
branches:
only:
- development
- preprod
- master
# Declare project language
# @link http://about.travis-ci.org/docs/user/languages/php/
language: php
# Declare versions of PHP to use. Use one decimal max
# @link http://docs.travis-ci.com/user/build-configuration/
matrix:
fast_finish: true
include:
- php: '8.2'
env: SNIFF=1
- php: '8.2'
addons:
apt:
packages:
- libonig-dev
before_install:
- composer self-update;
- composer install;
script:
# Search for PHP syntax errors
- vendor/bin/phplint
# Run PHPCS
- if [[ "$SNIFF" == "1" ]]; then vendor/bin/phpcs; fi
notifications:
on_success: never
on_failure: always