-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (50 loc) · 1.11 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
55
56
57
58
59
60
61
62
language: php
matrix:
fast_finish: true
include:
- php:
- 7.4
addons:
hosts:
- suite-l6.local
branches:
only:
- master
- /^deploy-.*$/
- initial
cache:
directories:
- $HOME/.composer/cache
- node_modules
- vendor
- vendor_internal
env:
global:
- setup=stable
before_install:
- sudo apt-get -qq update
- mysql -e 'CREATE DATABASE dcas_l6;'
- phpenv config-rm xdebug.ini || true
- printf "\n" | pecl install -f redis
before_script:
- cp .env.travis .env
- travis_retry composer self-update
- travis_retry composer install --dev --prefer-source --no-interaction
- npm install
- php artisan migrate
- yarn danger ci
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [[ $COMPOSER_FLAGS == '' ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
notifications:
email:
recipients:
- alex@elementalfusion.online
on_success: change
on_failure: always
services:
- mysql
- redis-server
sudo: false