-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
38 lines (30 loc) · 919 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
38
dist: xenial
language: php
php:
- 7.4.0
addons:
code_climate:
repo_token: 52756e59d36af6555a6aa32a7503258c0932bcfbdec8fe31f8a902f74811ef19
services:
- mysql
sudo: required
-cache:
- directories:
- - "$HOME/vendor"
before_script:
- mysql -e 'create database webfiles;'
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.2' ]; then cd build; bash xdebug_install.sh; cd ${TRAVIS_BUILD_DIR}; fi"
# composer
- composer self-update
- composer install --dev --prefer-source --no-interaction
script:
- phpunit --bootstrap tests/source/bootstrap.php --coverage-text --coverage-clover build/logs/clover.xml tests
after_script:
- vendor/bin/test-reporter
after_success:
- if [ $TRAVIS_PHP_VERSION = '7.2' ] && [ $TRAVIS_BRANCH = 'develop' ] && [ $TRAVIS_PULL_REQUEST
= 'false' ]; then sh generate-api.sh; fi
notifications:
slack:
rooms:
- simpleservcompany:PuGBBORaRFFEsZY4hpcbIZFK#travis