-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from iyzoer/master
Update travis configuration, deployment to Github releases
- Loading branch information
Showing
20 changed files
with
160 additions
and
3,258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
/vendor | ||
/www | ||
/bin | ||
.env | ||
tests/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,7 @@ dist: trusty | |
|
||
sudo: false | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
if: tag IS blank | ||
|
||
env: | ||
global: | ||
|
@@ -21,24 +19,64 @@ 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 project:deploy | ||
- (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null | ||
- sleep 2 | ||
|
||
script: | ||
- composer test | ||
|
||
deploy: | ||
skip_cleanup: true | ||
provider: script | ||
script: make | ||
on: | ||
php: 7.1 | ||
branch: master | ||
condition: "$DEPLOY = true" | ||
stages: | ||
- test | ||
- deploy | ||
|
||
before_install: | ||
- export LAST_TAG=`git describe --abbrev=0 --tags` | ||
- export CURRENT_VERSION=v`cat VERSION` | ||
|
||
before_script: make before_script | ||
|
||
script: composer test | ||
|
||
after_success: | ||
- make coverage | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
jobs: | ||
include: | ||
- php: 7.0 | ||
env: | ||
- TEST_SUITE=2.3 | ||
- OPENCART=2.3 | ||
- php: 7.1 | ||
env: | ||
- TEST_SUITE=2.3 | ||
- OPENCART=2.3 | ||
- php: 7.0 | ||
env: | ||
- TEST_SUITE=3.0 | ||
- OPENCART=3.0 | ||
- php: 7.1 | ||
env: | ||
- TEST_SUITE=3.0 | ||
- OPENCART=3.0 | ||
- php: 7.2 | ||
env: | ||
- TEST_SUITE=3.0 | ||
- OPENCART=3.0 | ||
- php: 7.3 | ||
env: | ||
- TEST_SUITE=3.0 | ||
- OPENCART=3.0 | ||
- stage: deploy | ||
before_script: skip | ||
script: make build_archive | ||
before_deploy: | ||
- export VERSION=`cat VERSION` | ||
- export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.ocmod.zip | ||
- git config --local user.name "retailCRM" | ||
- git config --local user.email "[email protected]" | ||
- export TRAVIS_TAG=v$VERSION | ||
- git tag $TRAVIS_TAG | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_OAUTH_TOKEN | ||
skip_cleanup: true | ||
file: $ARCHIVE_NAME | ||
on: | ||
condition: "$LAST_TAG != $CURRENT_VERSION" | ||
if: branch = master AND type = push AND fork = false | ||
after_deploy: make delete_archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
## v.3.3.7 | ||
* Изменена конфигурация travis-ci для сборки и развертывания | ||
|
||
## v.3.3.6 | ||
* Небольшие фиксы | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.3.5 | ||
3.3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,6 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"require-dev": { | ||
"opencart/opencart" : "2.3.0.2", | ||
"vlucas/phpdotenv": "~1.1.0", | ||
"phpunit/phpunit" : "~4.0", | ||
"beyondit/opencart-test-suite": "~2.3.0", | ||
"consolidation/robo": "~1", | ||
"henrikbjorn/lurker": "^1.2" | ||
}, | ||
"config": { | ||
"bin-dir": "bin/", | ||
"preferred-install": "source" | ||
|
@@ -25,12 +17,15 @@ | |
"opencart-dir" : "www" | ||
}, | ||
"scripts" : { | ||
"test-admin": "bin/phpunit --testsuite admin-tests --colors=always", | ||
"test-catalog": "bin/phpunit --testsuite catalog-tests --colors=always", | ||
"test-admin": "bin/phpunit --coverage-php coverage/admin.cov --testsuite admin-tests --colors=always", | ||
"test-catalog": "bin/phpunit --coverage-php coverage/catalog.cov --testsuite catalog-tests --colors=always", | ||
"test": [ | ||
"@test-admin", | ||
"@test-catalog" | ||
], | ||
"setup" : "bin/robo opencart:setup" | ||
"setup" : "bin/robo --load-from tests/RoboFile.php opencart:setup" | ||
}, | ||
"require-dev": { | ||
"consolidation/robo": "~1.0" | ||
} | ||
} |
Oops, something went wrong.