32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-25 01:45:59 +00:00

* Updated Jorobo and Joomla Projects Robo dependencies for package release and testing (#287)

* Standardised testing Joomla folder name
This commit is contained in:
Tito Alvarez 2016-12-14 12:08:42 -06:00 committed by Yves Hoppe
parent 1431b671d5
commit 3037c4007f
5 changed files with 12 additions and 12 deletions

2
.gitignore vendored
View File

@ -51,7 +51,7 @@ RoboFile.ini
tests/acceptance.suite.yml tests/acceptance.suite.yml
tests/*/*Tester.php tests/*/*Tester.php
tests/_support/_generated/*TesterActions.php tests/_support/_generated/*TesterActions.php
tests/joomla-cms3* tests/joomla*
tests/_output* tests/_output*
selenium-server-standalone.jar selenium-server-standalone.jar
codecept.phar codecept.phar

View File

@ -4,7 +4,7 @@ skipClone = false
; If you want to setup your test website in a different folder, you can do that here. ; If you want to setup your test website in a different folder, you can do that here.
; You can also set an absolute path, i.e. /path/to/my/cms/folder ; You can also set an absolute path, i.e. /path/to/my/cms/folder
cmsPath = tests/joomla-cms3 cmsPath = tests/joomla
; If you want to clone a different branch, you can set it here ; If you want to clone a different branch, you can set it here
branch = staging branch = staging

View File

@ -331,8 +331,8 @@ class RoboFile extends \Robo\Tasks
// Optionally uses Joomla default htaccess file. Used by TravisCI // Optionally uses Joomla default htaccess file. Used by TravisCI
if ($use_htaccess == true) if ($use_htaccess == true)
{ {
$this->_copy('./tests/joomla-cms3/htaccess.txt', './tests/joomla-cms3/.htaccess'); $this->_copy('./tests/joomla/htaccess.txt', './tests/joomla/.htaccess');
$this->_exec('sed -e "s,# RewriteBase /,RewriteBase /tests/joomla-cms3/,g" -in-place tests/joomla-cms3/.htaccess'); $this->_exec('sed -e "s,# RewriteBase /,RewriteBase /tests/joomla/,g" -in-place tests/joomla/.htaccess');
} }
} }
@ -392,13 +392,13 @@ class RoboFile extends \Robo\Tasks
{ {
if (empty($this->configuration->cmsPath)) if (empty($this->configuration->cmsPath))
{ {
return 'tests/joomla-cms3'; return 'tests/joomla';
} }
if (!file_exists(dirname($this->configuration->cmsPath))) if (!file_exists(dirname($this->configuration->cmsPath)))
{ {
$this->say("Cms path written in local configuration does not exists or is not readable"); $this->say("Cms path written in local configuration does not exists or is not readable");
return 'tests/joomla-cms3'; return 'tests/joomla';
} }
return $this->configuration->cmsPath; return $this->configuration->cmsPath;

View File

@ -13,11 +13,11 @@
"require-dev": { "require-dev": {
"codeception/codeception": "^2.2", "codeception/codeception": "^2.2",
"joomla-projects/joomla-browser": "v3.6.0.1", "joomla-projects/joomla-browser": "v3.6.0.1",
"codegyre/robo": "~0.6", "composition/robo": "~1",
"joomla-projects/robo": "dev-master", "joomla-projects/robo": "~0",
"joomla-projects/selenium-server-standalone": "v2.53.1", "joomla-projects/selenium-server-standalone": "v2.53.1",
"fzaninotto/faker": "^1.6", "fzaninotto/faker": "^1.6",
"joomla-projects/jorobo": "0.4", "joomla-projects/jorobo": "~0.6",
"Behat/Gherkin": "^4.4.1" "Behat/Gherkin": "^4.4.1"
} }
} }

View File

@ -18,7 +18,7 @@ modules:
- AcceptanceHelper - AcceptanceHelper
config: config:
JoomlaBrowser: JoomlaBrowser:
url: 'http://localhost/tests/joomla-cms3' # the url that points to the joomla installation at /tests/system/joomla-cms url: 'http://localhost/tests/joomla' # the url that points to the joomla installation at /tests/system/joomla-cms
browser: 'firefox' browser: 'firefox'
window_size: 1024x768 window_size: 1024x768
capabilities: capabilities:
@ -37,8 +37,8 @@ modules:
language: 'English (United Kingdom)' # Language in which you want the Application to be Installed language: 'English (United Kingdom)' # Language in which you want the Application to be Installed
AcceptanceHelper: AcceptanceHelper:
repo_folder: '/home/travis/build/joomla-extensions/weblinks/' # Path to the Extension repository. To be used by tests to install via Install from folder repo_folder: '/home/travis/build/joomla-extensions/weblinks/' # Path to the Extension repository. To be used by tests to install via Install from folder
counter_test_url: 'http://localhost/tests/joomla-cms3' # the url for the weblink item used to test hits counter counter_test_url: 'http://localhost/tests/joomla' # the url for the weblink item used to test hits counter
url: 'http://localhost/tests/joomla-cms3' # the url that points to the joomla installation at /tests/system/joomla-cms - we need it twice here url: 'http://localhost/tests/joomla' # the url that points to the joomla installation at /tests/system/joomla-cms - we need it twice here
error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED" error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED"
env: env:
desktop: ~ desktop: ~