ricardoamaro / drupalci_testbot

This is a testing version of Drupal testbot using docker containers. Please use:
https://drupal.org/project/drupalci_testbot
MIT License
53 stars 21 forks source link

I'd like to be able to pull in custom repositories such as sandbox git urls to run tests againsts #3

Closed nickveenhof closed 10 years ago

nickveenhof commented 10 years ago

For Search API we're using a sandbox to develop so that we can iterate more quickly. Drush dl does not support sandboxes but perhaps it's possible to allow a git url to be passed as argument list so that those are downloaded and put in the modules folder.

It would look like this:

sudo \ TESTGROUPS="--all" \ CONCURRENCY="4" \ DRUPALBRANCH="8.x" \ DEPENDENCIES_GIT="http://git.drupal.org/sandbox/daeron/2091893.git,master" \ PATCH="https://drupal.org/files/issues/2232253-3.patch,sites/all/modules/search_api__8_x_" \ ./run.

ricardoamaro commented 10 years ago

Working on this today

ricardoamaro commented 10 years ago

so you need to specify the same name in the apply path:

Git URL: http://git.drupal.org/sandbox/daeron/2091893.git Branch: master Cloning into '2091893'... remote: Counting objects: 3333, done. remote: Compressing objects: 100% (2552/2552), done. remote: Total 3333 (delta 1739), reused 118 (delta 53) Receiving objects: 100% (3333/3333), 479.15 KiB | 130.00 KiB/s, done. Resolving deltas: 100% (1739/1739), done. Checking connectivity... done.

./run.sh: line 273: cd: /home/ricardo/testbotdata/BUILD_2014_04_03_191243/sites/all/modules/search_api__8x/: No such file or directory

ricardoamaro commented 10 years ago

Nick:

sudo TESTGROUPS="--all" CONCURRENCY="4" DRUPALBRANCH="8.x" DEPENDENCIES_GIT="http://git.drupal.org/sandbox/daeron/2091893.git,master" PATCH="https://drupal.org/files/issues/2232253-3.patch,modules/2091893" ./run.sh 
--------------------------------------------------------------------------------
Container: testbot-web5.4 available
Running PHP5.4/mysql on drupal/testbot-web5.4
--------------------------------------------------------------------------------
Local Drupal repo found on /home/ricardo/testbotdata/drupal/
Local Drush repo found on /home/ricardo/testbotdata/drush/
Cloning into '/home/ricardo/testbotdata/BUILD_2014_04_03_194157'...
done.
Checking out files: 100% (9431/9431), done.
Already on '8.x'
Your branch is up-to-date with 'origin/8.x'.

NOTICE: $DEPENDENCIES has no modules declared...

Git URL: http://git.drupal.org/sandbox/daeron/2091893.git Branch: master 
Cloning into '2091893'...
remote: Counting objects: 3333, done.
remote: Compressing objects: 100% (2552/2552), done.
remote: Total 3333 (delta 1741), reused 118 (delta 53)
Receiving objects: 100% (3333/3333), 474.01 KiB | 133.00 KiB/s, done.
Resolving deltas: 100% (1741/1741), done.
Checking connectivity... done.

Applying Patch: https://drupal.org/files/issues/2232253-3.patch
patch:136: trailing whitespace.
      // @todo: We could use clear()
patch:137: trailing whitespace.
      // instead but then clear should take status and readonly into account.
warning: 2 lines add whitespace errors.
Done!

------------------------- ENVIRONMENT VARIABLES IN USE -------------------------
IDENTIFIER="BUILD_2014_04_03_194157"
DRUPALBRANCH="8.x"
DRUPALVERSION="8"
UPDATEREPO=false
REPODIR="/home/ricardo/testbotdata"
DRUPALREPO="http://git.drupal.org/project/drupal.git"
DRUSHREPO="https://github.com/drush-ops/drush.git"
BUILDSDIR="/home/ricardo/testbotdata"
WORKSPACE="/home/ricardo/testbotdata/BUILD_2014_04_03_194157/"
DEPENDENCIES=""
DEPENDENCIES_GIT="http://git.drupal.org/sandbox/daeron/2091893.git,master"
MODULESPATH="./modules"
PATCH="https://drupal.org/files/issues/2232253-3.patch,modules/2091893"
DBUSER="drupaltestbot"
DBPASS="drupaltestbotpw"
DBTYPE="mysql" 
DBCONTAINER="drupaltestbot-db"
DBLINK="--link=drupaltestbot-db:db"
CMD="/bin/bash"
VERBOSE="false"
PHPVERSION="5.4"
CONCURRENCY="4" 
TESTGROUPS="--all"
RUNSCRIPT="php ./core/scripts/run-tests.sh --php /usr/bin/php --url 'http://localhost' --color --concurrency 4  --xml '/var/workspace/results' --all | tee /var/www/test.results "

------------------------- STARTING DOCKER CONTAINER ----------------------------
root@6867346c42f9:/# /start.sh 
Operation [start]...
Operation [install]...

You are about to create a /var/www/sites/default/settings.php file and empty any Config directories and CREATE the 'BUILD_2014_04_03_194157' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a few seconds ...                                                                                                                                                                         [ok]
sh: 1: /usr/sbin/sendmail: not found
WD mail: Error sending e-mail (from admin@example.com to admin@example.com with reply-to not set).                                                                                                                                 [error]
Installation complete.  User name: admin  User password: drupal                                                                                                                                                                    [ok]
Unable to send e-mail. Contact the site administrator if the problem persists.                                                                                                                                                     [error]
Congratulations, you installed Drupal!Drupal installation complete                                                                                                                                                                 [status]
The following extensions will be enabled: simpletest
Do you really want to continue? (y/n): y
simpletest was enabled successfully.                                                                                                                                                                                               [ok]
simpletest defines the following permissions: administer unit tests

Operation [run tests]...

Drupal test run
---------------

All tests will run.

Test run started:
  Thursday, April 3, 2014 - 18:43

Test summary
------------

Drupal\system\Tests\Action\ActionUnitTest                     11 passes                                      
Drupal\action\Tests\ConfigurationTest                         51 passes                                      
Drupal\action\Tests\ActionUninstallTest                       13 passes