Skip to content

Commit

Permalink
Merge pull request #2 from pay-now/feature/add-travis-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
emilleszczak2 authored Nov 2, 2021
2 parents 90fa005 + 3c70455 commit cc51c10
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php
php:
- 7.1.0
script: skip
before_deploy:
- rsync -a --exclude={'*.md','.gitignore','.*'} ./* paynow
- zip -r paynow.zip ./paynow
deploy:
provider: releases
api_key:
secure: upx/9oOg8H5leKSnRaMm1YS6WHdjNY3+rAml3fBpITs63KBedqrq85vNsAiVsycik8Scq5Zoo7veUwy06myQfemkFtfU05dz8wsV3EV4Lm7JEHy1TpQG9vTJ1vAZigZMRm6C6WHVx72t34QDCDORGeQDEeOhX8DQJtvOYdpJOcG/IXG31EXwSZ4AtDCkyGazM7+EGRvTJuT5HIFdo1Cp+wk1R3vUz/DMXZfDsDnr/w2WLgNV0WbV1LJsGS+/UkTNi9lbW1rqGE7N57Zn0rLrvEMwlsOmwdUZPmiQVCo3J/qRRdVC6IOHT2ylxRhTSBRnYZqk7OIEOT+XSf2yIkIoEuc4Dg7ILFXwDgAZ2fL2rQatZhnfLQxiVX/GviJId9IrazFD3s8uq9eH3NnTtT93RZPJ/ip0zDdY5jYjKLfkeHqA8LVJ3erXdXsRlmysWl9AITx5s0c+KwM9C9e3lS7UNuFlHNF/Vc9XBWlwVgrHsXbJCwqv/gQGhZHEJJqu4Vhz3rfxaZhocgCLmVGaL2pXcJ+9UEHgPwOYUNOMveeAOjoO9kez5+5Yu8clO3ilg5KHsYunEWqowJhhdmUVRWS66U459CNIZHXXGK2WMrh3EQj1i5eN52S3V+3bZmRXUmhkDO3Tog7sEenxCKnNr0xBHzvykPuZfkrQp75u6fC+1OE=
file: paynow.zip
skip_cleanup: true
on:
repo: pay-now/paynow-magento
branch: master
tags: true

4 changes: 2 additions & 2 deletions app/code/community/Paynow/PaymentGateway/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function handle_adminLoginAfter($observer)
curl_setopt($ch, CURLOPT_USERAGENT, 'paynow/paymentgateway-magento-ext');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// @fixme: hardcoded url?
curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/movecloser/MoveCloser_Paynow/tags');
curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/pay-now/paynow-magento/tags');
$tagsJson = curl_exec($ch);
curl_close($ch);

Expand Down Expand Up @@ -83,7 +83,7 @@ protected function createNewVersionNotice($currentVersion, $newestVersion)
$message->setDateAdded(date("c", time()));
$message->setTitle($this->_t('New Paynow_PaymentGateway plugin version available'));
$message->setDescription($this->_t('Installed version: %s, newest version: %s', $currentVersion, $newestVersion));
$message->setUrl('https://github.com/movecloser/MoveCloser_Paynow');
$message->setUrl('https://github.com/pay-now/paynow-magento');
$message->setSeverity(Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE);
$message->save();
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "paynow/paymentgateway",
"type": "magento-module",
"license": "MIT",
"homepage": "https://github.com/movecloser/MoveCloser_Paynow",
"homepage": "https://github.com/pay-now/paynow-magento",
"description": "Add support for paynow payment gateway.",
"require": {
"php": ">=7.1.0",
Expand Down

0 comments on commit cc51c10

Please sign in to comment.