mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 06:36:06 +03:00
update travis config
This commit is contained in:
parent
de3a1ae7e7
commit
c8690e8252
16
.travis.yml
16
.travis.yml
@ -22,21 +22,11 @@ env:
|
||||
- SERVER_PORT=8000
|
||||
- SERVER_URL=http://localhost
|
||||
|
||||
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
|
||||
- bin/robo --load-from tests/RoboFile.php project:deploy
|
||||
- (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
|
||||
- sleep 2
|
||||
|
||||
script:
|
||||
- composer test
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
script: composer test
|
||||
before_script: make before_script
|
||||
- stage: GitHub Release
|
||||
script: make build_archive
|
||||
before_deploy:
|
||||
|
9
Makefile
9
Makefile
@ -12,3 +12,12 @@ send_to_ftp:
|
||||
|
||||
delete_archive:
|
||||
rm -f $(ARCHIVE_NAME)
|
||||
|
||||
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
|
||||
bin/robo --load-from tests/RoboFile.php project:deploy
|
||||
(php -S localhost:8000 -t www &) 2> /dev/null > /dev/null
|
||||
sleep 2
|
Loading…
Reference in New Issue
Block a user