forked from chilek/lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (72 loc) · 1.55 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
79
80
81
82
83
84
85
env:
global:
- COMPOSER_DISABLE_XDEBUG_WARN="1"
matrix:
include:
- os: linux
language: php
php: 5.3
dist: precise
env:
PHPCS_VER="^2"
PHPCS_STANDARD="phpcs2.xml"
- os: linux
language: php
php: 5.4
env:
PHPCS_VER="^3"
PHPCS_STANDARD="phpcs2.xml"
- os: linux
language: php
php: 5.5
env:
PHPCS_VER="^3"
PHPCS_STANDARD="phpcs3.xml"
- os: linux
language: php
php: 5.6
env:
PHPCS_VER="^3"
PHPCS_STANDARD="phpcs3.xml"
- os: linux
language: php
php: 7.0
env:
PHPCS_VER="^3"
PHPCS_STANDARD="phpcs3.xml"
- os: linux
language: php
php: 7.1
env:
PHPCS_VER="^3"
PHPCS_STANDARD="phpcs3.xml"
- os: linux
language: php
php: 7.2
env:
PHPCS_VER="^3"
PHPCS_STANDARD="phpcs3.xml"
addons:
postgresql: "9.2"
services:
- postgresql
- mysql
install:
- composer install
before_script:
- psql -c 'create database lms;' -U postgres
- psql -U postgres -f doc/lms.pgsql
- mysql -e 'CREATE DATABASE lms;'
- mysql lms < doc/lms.mysql
- if find . -name "*.php" ! -path "./vendor/*" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v "No syntax errors detected"; then exit 1; fi
# - phpcs --standard=$PHPCS_STANDARD
- npm install -g jshint
- jshint .
script: true
notifications:
email:
# recipients:
on_success: change
on_failure: always