-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
54 lines (54 loc) · 1.54 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: php
php:
- 7.4
- 8.0
- 8.1
matrix:
allow_failures:
- php: 8.0
- php: 8.1
env:
global:
- XDEBUG_MODE=coverage
services:
- mysql
before_install:
- nvm install stable
- npm update -g npm
install:
# Newman
- npm install -g newman
# Composer
- composer self-update
- COMPOSER_ROOT_VERSION=dev-master composer install
# Scrutinizer
- wget https://scrutinizer-ci.com/ocular.phar
before_script:
# Database
- mysql -e 'CREATE DATABASE bluz;'
# Migrations
- php vendor/bin/bluzman db:migrate -e testing
- php vendor/bin/bluzman db:seed:run -e testing
# Make directory for reports
- mkdir .reports
script:
# Check code style
- php vendor/bin/phpcs ./application --standard=PSR12 --encoding=utf-8 --ignore=./application/_loader.php
# Run built-in web-server
- php vendor/bin/bluzman server:start --host 127.0.0.1 -b -e testing
# Run CodeCeption tests
- php vendor/bin/codecept run --coverage --coverage-xml -v
# Run postman/newman tests
- newman run tests/postman/collection.json -e tests/postman/environment.json
after_success:
- php vendor/bin/coveralls -v
- php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/b84e6a583d6eea87d0eb
- https://webhooks.gitter.im/e/c4fa557829c5bd992271
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false