2019-02-28 14:47:16 +03:00
|
|
|
language: php
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2019-07-01 14:59:29 +03:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
2019-02-28 14:47:16 +03:00
|
|
|
php:
|
|
|
|
- 7.1
|
|
|
|
- 7.2
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DB_BITRIX_HOST=localhost
|
|
|
|
- DB_BITRIX_LOGIN=root
|
|
|
|
- DB_BITRIX_PASS=root
|
|
|
|
- DB_BITRIX_NAME=bitrix
|
2019-02-28 15:57:30 +03:00
|
|
|
- BITRIX_PATH=$TRAVIS_BUILD_DIR/bitrix
|
2019-02-28 14:47:16 +03:00
|
|
|
|
|
|
|
before_script:
|
2019-02-28 15:25:32 +03:00
|
|
|
# Change MySQL root password
|
|
|
|
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
|
|
|
|
|
|
|
- composer install
|
2019-02-28 14:47:16 +03:00
|
|
|
- bash tests/bin/before_script.sh
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make test
|