29 lines
503 B
YAML
29 lines
503 B
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
services:
|
|
- mysql
|
|
|
|
php:
|
|
- 7.1
|
|
- 7.2
|
|
|
|
env:
|
|
global:
|
|
- DB_BITRIX_HOST=localhost
|
|
- DB_BITRIX_LOGIN=root
|
|
- DB_BITRIX_PASS=root
|
|
- DB_BITRIX_NAME=bitrix
|
|
- BITRIX_PATH=$TRAVIS_BUILD_DIR/bitrix
|
|
|
|
before_script:
|
|
# Change MySQL root password
|
|
- echo "USE mysql;\nUPDATE user SET authentication_string=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
|
|
|
- composer install
|
|
- bash tests/bin/before_script.sh
|
|
|
|
script:
|
|
- make test
|