-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (25 loc) · 921 Bytes
/
.travis.yml
File metadata and controls
33 lines (25 loc) · 921 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
language: php
dist: trusty
sudo: false
php:
- 7.1
env:
- PHPUNIT=1
- PHPCS=1
- JSHINT=1
matrix:
fast_finish: true
before_script:
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:^3.0; fi
- if [[ $PHPUNIT = 1 ]]; then composer install; fi
- if [[ $PHPUNIT = 1 ]]; then composer run-script post-install-cmd --no-interaction; fi
- if [[ $PHPUNIT = 1 ]]; then sh -c "mysql -e 'CREATE DATABASE IF NOT EXISTS test_myapp;'"; fi
- if [[ $JSHINT = 1 ]]; then npm install -g jshint; fi
- phpenv rehash
script:
- if [[ $PHPUNIT = 1 ]]; then vendor/bin/phpunit; fi
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot --ignore=./config/Migrations/*; fi
- if [[ $JSHINT = 1 ]]; then jshint webroot/js/; fi
notifications:
email: false
slack: cber:ZeUxtjnpHNEYCkMtUBhskwXl