opencart-module/.travis.yml

46 lines
914 B
YAML
Raw Normal View History

2018-06-13 16:13:08 +03:00
language: php
2019-07-18 12:51:58 +03:00
dist: trusty
2018-06-13 16:13:08 +03:00
sudo: false
php:
- 7.0
- 7.1
env:
2018-06-13 16:26:07 +03:00
global:
2020-02-17 17:46:01 +03:00
- ROBO_CONFIG=$(TRAVIS_BUILD_DIR)/tests/robo.yml
2018-06-13 16:26:07 +03:00
- OC_DB_HOSTNAME=localhost
- OC_DB_USERNAME=root
- OC_DB_PASSWORD=root
- OC_DB_DATABASE=tests_opencart
- OC_DB_DRIVER=mysqli
- OC_USERNAME=admin
- OC_PASSWORD=admin
2018-06-13 17:18:06 +03:00
- OC_EMAIL=test@test.com
2018-06-13 16:26:07 +03:00
- SERVER_PORT=8000
- SERVER_URL=http://localhost
2018-06-13 16:13:08 +03:00
before_script:
# Change MySQL root password
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
- composer install
- composer setup
2020-02-17 17:46:01 +03:00
- bin/robo --load-from tests/RoboFile.php project:deploy
2019-01-18 09:53:27 +03:00
- (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
2018-06-13 16:13:08 +03:00
- sleep 2
script:
- composer test
deploy:
skip_cleanup: true
provider: script
script: make
on:
2018-06-13 17:35:29 +03:00
php: 7.1
2018-06-13 16:13:08 +03:00
branch: master
2019-07-18 12:51:58 +03:00
condition: "$DEPLOY = true"