-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
44 lines (35 loc) · 1.1 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
# Required to run your project under the correct environment.
language: php
# Versions of PHP you want your project run with.
php:
- 7.2
services:
- memcached
- redis-server
- mysql
install:
- tests/scripts/memcache.sh
- tests/scripts/redis.sh
- composer require satooshi/php-coveralls:~0.6@stable
before_install:
- chmod +x tests/scripts/*
# Commands to be run before your environment runs.
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
- mkdir -p build/logs
- mysql -u root < Edge/structure.sql
# Commands you want to run that will verify your build.
script: phpunit --coverage-clover build/logs/clover.xml
# allow_failures: Allow this build to fail under the specified environments.
# fast_finish: If your build fails do not continue trying to build, just stop.
matrix:
allow_failures:
- php: 7.2
fast_finish: true
# Customize when the notification emails are sent.
notifications:
on_success: never
on_failure: always
after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'