-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
49 lines (38 loc) · 942 Bytes
/
.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
language: php
os: linux
env:
- DB_ADAPTER=mysql DB_NAME=dts DB_USER=root DB_HOST=127.0.0.1
php:
- 7.4
- 8
services:
- mysql
- xvfb
matrix:
allow_failures:
- php: 8
fast_finish: true
before_install:
- mysql -e "CREATE DATABASE IF NOT EXISTS dts;"
install:
- composer install --no-interaction
- vendor/bin/phinx migrate
before_script:
- mkdir -p build/logs
script:
- wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
- tar xvJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
- sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin/
- phpunit --coverage-clover build/logs/clover.xml
after_success:
# Submit coverage report to codecov.io
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: never
on_failure: always
# cache composer for faster tests
cache:
directories:
- vendor
- $HOME/.cache/composer