-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
38 lines (31 loc) · 1.06 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
language: php
php:
- 7.4
env:
global:
- DB_HOST='127.0.0.1'
- DB_BASE='doclister'
- DB_USER='root'
- DB_PASSWORD=''
- DB_PREFIX='modx_'
- DB_CHARSET='utf8mb4'
- DB_METHOD='SET NAMES'
- DB_COLLATION='utf8mb4_unicode_ci'
services:
- mysql
before_install:
- composer self-update
install: composer install
before_script:
- mysql -h 127.0.0.1 -u root -e "SET GLOBAL sql_mode = ''"
- mysql -h 127.0.0.1 -u root -e 'create database doclister'
- mysql -h 127.0.0.1 -u root doclister < tests/database/site_templates.sql
- mysql -h 127.0.0.1 -u root doclister < tests/database/site_tmplvars.sql
- mysql -h 127.0.0.1 -u root doclister < tests/database/site_tmplvar_templates.sql
- mysql -h 127.0.0.1 -u root doclister < tests/database/site_content.sql
- mysql -h 127.0.0.1 -u root doclister < tests/database/site_tmplvar_contentvalues.sql
- mysql -h 127.0.0.1 -u root doclister < tests/database/user_attributes.sql
- mysql -h 127.0.0.1 -u root doclister < tests/database/manager_users.sql
script: phpunit
notifications:
email: modx@agel-nash.ru