forked from baserproject/ucmitz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 1.26 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
language: php
php:
- 7.2
- 7.3
- 7.4
dist: trusty
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- pear config-set preferred_state snapshot && yes "" | pecl install mcrypt ;
- |
bash -c "
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
mysql -u root -e \"CREATE DATABASE basercms CHARACTER SET utf8;\";
mysql -u root -e \"CREATE DATABASE test_basercms CHARACTER SET utf8;\";
mysql -u root -e \"SET GLOBAL time_zone = 'Asia/Tokyo'\";
mysql -u root -e \"GRANT ALL PRIVILEGES ON basercms.* TO basercms@localhost IDENTIFIED BY 'basercms';\";
mysql -u root -e \"GRANT ALL PRIVILEGES ON test_basercms.* TO basercms@localhost IDENTIFIED BY 'basercms';\";
";
- mysql -ubasercms -pbasercms basercms < __assets/basercms.sql;
- cp config/app_local.example.php config/app_local.php
- cp config/.env.example config/.env
- sed -i -e "s/'host' => 'bc5-db'/'host' => 'localhost'/g" config/app_local.php;
- sed -i -e "s/'username' => 'root'/'username' => 'basercms'/g" config/app_local.php;
- sed -i -e "s/'password' => 'root'/'password' => 'basercms'/g" config/app_local.php;
- composer self-update;
- composer install;
script:
- vendor/bin/phpunit
notifications:
email: false