forked from Crown-Commercial-Service/ccs-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 828 Bytes
/
.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
# 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: '7.3'
env: SNIFF=1
- php: '7.4'
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