forked from LycheeOrg/Lychee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (66 loc) · 1.76 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
67
68
69
70
71
72
73
74
75
76
77
78
os:
- linux
dist: bionic
language: php
git:
depth: 3
php:
- '7.4'
env:
- SQL=mariadb EXIFTOOL=yes
- SQL=mariadb EXIFTOOL=no
jobs:
include:
- env: SQL=mariadb EXIFTOOL=yes
if: branch = master
- env: SQL=mariadb EXIFTOOL=no
if: branch = master
- env: SQL=postgresql EXIFTOOL=yes
if: branch = master
- env: SQL=postgresql EXIFTOOL=no
if: branch = master
- env: SQL=sqlite EXIFTOOL=yes
if: branch = master
- env: SQL=sqlite EXIFTOOL=no
if: branch = master
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.php-cs-fixer
- $HOME/.local
services:
- postgresql
addons:
mariadb: '10.3'
apt:
packages:
- php-pecl-http
- php-imagick
- php-mbstring
- php-json
- php-gd
update: true
before_script:
- printf "\n" | pecl install imagick
# Install ExifTool
- sh -c "if [ '$EXIFTOOL' = 'yes' ] ; then sudo apt-get -y install libimage-exiftool-perl ; fi"
# create db for mariadb
- sh -c "if [ '$SQL' = 'mariadb' ] ; then mysql -e 'create database homestead_test;' ; fi"
# create db for postgresql
- sh -c "if [ '$SQL' = 'postgresql' ] ; then psql -c 'create database homestead_test;' -U postgres ; fi"
# create db for SQLite
- sh -c "if [ '$SQL' = 'sqlite' ] ; then touch database/database.sqlite ; fi"
# composer stuff
- composer self-update
script:
- bash test_dev.sh
- bash test_dist.sh
after_success:
- bash codecov.sh
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/c96e902d9f1fe0faeacc
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always