mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
update travis config
This commit is contained in:
parent
de3a1ae7e7
commit
c8690e8252
20
.travis.yml
20
.travis.yml
@ -22,26 +22,16 @@ env:
|
|||||||
- SERVER_PORT=8000
|
- SERVER_PORT=8000
|
||||||
- SERVER_URL=http://localhost
|
- 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:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
- stage: test
|
||||||
|
script: composer test
|
||||||
|
before_script: make before_script
|
||||||
- stage: GitHub Release
|
- stage: GitHub Release
|
||||||
script: make build_archive
|
script: make build_archive
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- export VERSION = `cat VERSION`
|
- export VERSION=`cat VERSION`
|
||||||
- export ARCHIVE_NAME = '/tmp/retailcrm-'$(VERSION)'.zip'
|
- export ARCHIVE_NAME='/tmp/retailcrm-'$(VERSION)'.zip'
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GITHUB_OAUTH_TOKEN
|
api_key: $GITHUB_OAUTH_TOKEN
|
||||||
|
11
Makefile
11
Makefile
@ -11,4 +11,13 @@ send_to_ftp:
|
|||||||
curl -T $(ARCHIVE_NAME) -u $(FTP_USER):$(FTP_PASSWORD) ftp://$(FTP_HOST)
|
curl -T $(ARCHIVE_NAME) -u $(FTP_USER):$(FTP_PASSWORD) ftp://$(FTP_HOST)
|
||||||
|
|
||||||
delete_archive:
|
delete_archive:
|
||||||
rm -f $(ARCHIVE_NAME)
|
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