-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·66 lines (54 loc) · 1.24 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
63
64
65
66
language: php
matrix:
fast_finish: true
include:
- php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
addons:
hosts:
- dcas-l58.test
branches:
only:
- master
- /^deploy-.*$/
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_l58;'
- phpenv config-rm xdebug.ini || true
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- 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:
- memcached
- mysql
- redis-server
sudo: false