-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (40 loc) · 1.08 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
language: php
php:
- '5.6'
- '7.1'
services:
- mysql
git:
depth: 1
mysql:
database: test
username: root
encoding: utf8
before_install:
- sudo apt-get update > /dev/null
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
install:
# Install composer packages, will also trigger dump-autoload
- travis_retry composer install --no-interaction
### Demo has not any test so it does not need to coveralls
# # Install coveralls.phar
# - wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
# - chmod +x coveralls.phar
# - php coveralls.phar --version
### Demo has not test yet
# script:
# - cd tests
# - php run.php
# - cd ..
after_success:
### Demo has not test
# Submit coverage report to Coveralls servers, see .coveralls.yml
# - travis_retry php coveralls.phar -v
# Submit coverage report to codecov.io
# - bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: never
on_failure: always
on_error: always