-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
48 lines (38 loc) · 1.52 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
# Required to run your project under the correct environment.
language: php
# Versions of PHP you want your project run with.
php:
- 5.5
- 5.6
- 7.0
- hhvm
# optionally specify a list of environments, for example to test different RDBMS
env:
- DB=mysql
addons:
apt:
packages:
- glpk-utils
# Commands to be run before your environment runs.
before_script:
- composer self-update
- composer install --prefer-source --no-interaction
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS meetme;" -uroot; fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE USER 'meetme'@'localhost' IDENTIFIED BY 'Lj5Fvj8K';" -uroot; fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "GRANT ALL ON meetme.* TO 'meetme'@'localhost';" -uroot; fi
- php artisan migrate --force --seed
# Commands you want to run that will verify your build.
script: phpunit --coverage-text --coverage-clover=coverage.clover
# 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: hhvm
# Customize when the notification emails are sent.
notifications:
on_success: never
on_failure: always
slack: dsd-meetme:pZvZrzGoESPNVXScLAnMf10X
after_script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;'