Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to confirm PR environment behavior. #157

Open
wants to merge 3,752 commits into
base: 7.x-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3752 commits
Select commit Hold shift + click to select a range
9a60097
Only show project indicator on tasks that are in projects.
jonpugh May 26, 2017
5386099
Move site subtitle to top right of page.
jonpugh May 31, 2017
fc33bc8
Move site subtitle to top right of page.
jonpugh May 31, 2017
49de10c
Only lock "new_uri" field when "rename" GET param is not set.
jonpugh May 31, 2017
e4dbc35
Add "change site domain name" link and permission.
jonpugh May 31, 2017
bd11414
Incorrect permission name.
jonpugh May 31, 2017
108ca18
Allow provision-test command to be run against any site using drush o…
jonpugh Jun 22, 2017
84be7f9
Check for "is-devshop" option to decide what drush log type to output.
jonpugh Jun 22, 2017
4e82328
Add a check for the full URL.
jonpugh Jun 22, 2017
ac502c2
Fixng the text for the duplicate project check.
jonpugh Jun 22, 2017
91fbf74
Incorrect condition: don't match last task, we are updating it.
jonpugh Jun 22, 2017
cad78ad
Use drush @hostmaster provision-test instead of devshop d:t.
jonpugh Jun 22, 2017
1ccd3d5
Revert "Check for "is-devshop" option to decide what drush log type t…
jonpugh Jun 22, 2017
7f03f7f
Just use drush log if devshop, and just echo if not.
jonpugh Jun 22, 2017
4d0471a
Add help text if site domain rename is chosen.
jonpugh Jun 23, 2017
4342723
Fix link in test.
jonpugh Jun 23, 2017
6c19549
Allow provision-test command to be run against any site using drush o…
jonpugh Jun 22, 2017
4fbb948
Adding devshop-tests.sh to devmaster repo instead of devshop repo.
jonpugh Jul 6, 2017
11217d5
Merge branch '1.x' into project-create-sites-missing
jonpugh Jul 6, 2017
8ce32fc
Don't forget to press "Add Environment".
jonpugh Jul 7, 2017
2808359
Revert "Incorrect condition: don't match last task, we are updating it."
jonpugh Jul 7, 2017
f339f58
Revert "Revert "Incorrect condition: don't match last task, we are up…
jonpugh Jul 7, 2017
85a1e2a
Merge pull request #68 from opendevshop/project-create-sites-missing
jonpugh Jul 7, 2017
ea86872
Use -v and --debug for drush command that is failing with "Drush comm…
jonpugh Jul 10, 2017
c9add2e
Force drush hosting-task
jonpugh Jul 10, 2017
7c63e81
One last drush hosting task needs --force.
jonpugh Jul 10, 2017
4e41e18
Adding new tests to Travis: install script and CentOS
jonpugh Jul 10, 2017
b3f921d
Revert "Adding new tests to Travis: install script and CentOS"
jonpugh Jul 11, 2017
d3eac7d
Adding new tests to Travis: install script and CentOS
jonpugh Jul 10, 2017
7b66bde
output pwd and env
jonpugh Jul 12, 2017
9652a8f
Attempt to use absolute path to devmaster copy.
jonpugh Jul 12, 2017
63671d6
Removing old travis code.
jonpugh Jul 12, 2017
1920fe5
Revert "Attempt to use absolute path to devmaster copy."
jonpugh Jul 12, 2017
070a768
Merge pull request #71 from opendevshop/centos-tests
jonpugh Jul 12, 2017
ce8b794
Update default environment domain name pattern to be http://PROJECT.E…
jonpugh Dec 15, 2016
12e34d0
Default URL pattern has changed: change the test.
jonpugh Jul 8, 2017
55d0d40
Changing site name in tests.
jonpugh Jul 9, 2017
72c2236
Fixes opendevshop/devshop#28: Create project wizard step 3 does not r…
jonpugh Jul 18, 2017
c7d53b6
Finally Fixes opendevshop/devshop#28: Respect project vs global envir…
jonpugh Jul 18, 2017
774e3bb
Default project base_url to the variable. Remove unneeded function.
jonpugh Jul 18, 2017
3b59bc7
Ensure @environment placeholder is present in environment settings.
jonpugh Jul 18, 2017
7bdf2db
Validate that the default environment domain pattern has @environment…
jonpugh Jul 18, 2017
6fe15cd
Merge pull request #72 from opendevshop/url-pattern
jonpugh Jul 19, 2017
2620316
Change module weight to higher than one so it will not be overriden b…
josebc Jul 20, 2017
90360b9
Replace HTTP_RAW_POST_DATA with php://input
josebc Jul 23, 2017
5ba0c5d
Merge pull request #75 from Vardot/deprecate-http-raw-post-data
jonpugh Jul 24, 2017
760538e
Removing minor version numbers in tests.
jonpugh Jul 26, 2017
6a1310c
Fix drupal 8 sites using composer install hook.
jonpugh Aug 14, 2017
1eb9b31
Use git['repo_path']
jonpugh Aug 14, 2017
0425026
Default new projects domain name pattern to @project.@environment.@ho…
jonpugh Aug 16, 2017
6b2a11e
Fix project node validation for environment domain name pattern.
jonpugh Aug 16, 2017
e58d2da
Fixing bad query for pull request data.
jonpugh Aug 16, 2017
e7691d7
Changing git commit task to use d()->platform->repo_root instead of d…
jonpugh Aug 17, 2017
f025f05
Move git information gathering to theme. We only care about it if it'…
jonpugh Aug 23, 2017
12fca6b
Merge branch '1.x' into git-exec-to-theme
jonpugh Aug 24, 2017
85bc1a3
Make links in logs clickable!
jonpugh Aug 24, 2017
a8b1395
Merge branch '1.x' into git-exec-to-theme
jonpugh Aug 24, 2017
a36f007
Merge pull request #77 from opendevshop/git-exec-to-theme
jonpugh Aug 24, 2017
5d56ed1
Merge branch '1.x' into fix-bitbucket-project-form
jonpugh Aug 24, 2017
9b94905
Indentation.
jonpugh Aug 24, 2017
4ba0e16
Merge pull request #73 from Vardot/fix-bitbucket-project-form
jonpugh Aug 24, 2017
96607eb
Adding form to project settings to reinstall pull request environments.
jonpugh Dec 14, 2016
8d0e46d
Add "states" so github settings only appear when "create PR env" is c…
jonpugh Dec 14, 2016
7a487fb
Improving select text.
jonpugh Dec 14, 2016
d233d52
Removing accidental setting of #options.
jonpugh Dec 14, 2016
3c83f2c
Check to see if "force reinstall on pull request environments is set.…
jonpugh Dec 15, 2016
0b5d173
Improving label for pull request creation method form element.
jonpugh Dec 15, 2016
4419530
Save correct hosting task arguments.
jonpugh Dec 15, 2016
d9554a0
We need to queue a deploy task so the codebase is up to date.
jonpugh Dec 15, 2016
3a59601
Show message when no environments were found. Go ahead and act on dis…
jonpugh Dec 15, 2016
0aa76a4
Syntax error.
jonpugh Dec 15, 2016
cc7ace7
Include git_ref in deployment task.
jonpugh Dec 15, 2016
44f5248
Fixing URLs for github commit status to match the site node page.
jonpugh Dec 15, 2016
c1db55a
Comment out warning about git ref not present in remote.
jonpugh Dec 16, 2016
d415530
Replacing removed check for enabled site.
jonpugh Dec 19, 2016
126eba2
Lookup existing PR before writing the record.
jonpugh Dec 21, 2016
29debaa
Use a try/catch for drupal_write_record.
jonpugh Dec 21, 2016
01498ae
More messaging to determine GitHub API errors.
jonpugh Dec 21, 2016
e427e10
Output a 500 response if an exception is thrown.
jonpugh Dec 21, 2016
06dbb22
Typo in variable name.
jonpugh Dec 21, 2016
8390f88
Only throw 500 error when branch is not out of date.
jonpugh Dec 21, 2016
d2881ff
Commenting out print_r on environment.
jonpugh Dec 21, 2016
244caaa
Check for environment record in the database, not the project objects.
jonpugh Dec 21, 2016
e1473c0
Use try/catch for drupal_write_record.
jonpugh Dec 21, 2016
2e798a6
Fix db_select()
jonpugh Dec 21, 2016
dcd4d2f
Fixing condition check.
jonpugh Dec 21, 2016
2a541a4
Better messaging to github api.
jonpugh Dec 21, 2016
ce2dedd
Respond with 500 error if something went wrong with deployment status.
jonpugh Dec 21, 2016
7d32045
Continue if environment is not found.
jonpugh Dec 21, 2016
3226a55
Fixing inverse logic.
jonpugh Dec 21, 2016
648ffd8
Better message for no environments found.
jonpugh Dec 21, 2016
bd71529
Avoid sending two deployment statuses if "reinstall" is selected.
jonpugh Dec 21, 2016
ce8f3fa
Use install_method context option instead of environment settings.
jonpugh Dec 21, 2016
16b5368
Properly lookup package instances.
jonpugh Dec 21, 2016
764d28d
Remove debug message.
jonpugh Dec 21, 2016
6da08c9
Ensure "install_method" options are saved when site form is saved.
jonpugh Aug 25, 2017
02b86d4
Merge pull request #79 from opendevshop/install-method-loss
jonpugh Aug 28, 2017
5b46998
Merge pull request #78 from opendevshop/pr-reinstall
jonpugh Aug 28, 2017
bd66eda
Commenting out unused drupal core version.
jonpugh Aug 31, 2017
859cd20
Set hosting back to 7.x-3.x. Set hosting logs to 3.x. Whitespace for …
jonpugh Aug 31, 2017
088e25c
Update views and bootstrap and set contrib hosting to x.x
jonpugh Aug 31, 2017
36ea5d0
default hosting to download version method.
jonpugh Aug 31, 2017
aa03b1b
Removing accidental commit of testing makefile parts.
jonpugh Aug 31, 2017
de6069d
Add a make.yml file to make all modules download as git repos.
jonpugh Aug 31, 2017
7cebda8
Peg as many modules to fixed versions as we can by default.
jonpugh Aug 31, 2017
34a3ad2
Adding git checkot for devshop_stats to makefile.
jonpugh Aug 31, 2017
eea97db
Temporarily commenting out development makefile to give travis a chan…
jonpugh Aug 31, 2017
9b32926
Putting back development make yml.
jonpugh Aug 31, 2017
bb09ac9
Load PR data into environment settings so it gets saved in context.
jonpugh Aug 25, 2017
21fe9b7
Verify site after install and deploy.
jonpugh Aug 25, 2017
e663d50
Check for drupal version before showing export/import config.
jonpugh Jul 19, 2017
3f758ac
Use correct task name for Features Revert task.
jonpugh Jul 21, 2017
54b4b61
Finally Fixes opendevshop/devshop#28: Respect project vs global envir…
jonpugh Jul 18, 2017
c89de9a
Remove no longer used code for add environment page.
jonpugh Jul 18, 2017
a3fc36e
Update default environment domain name pattern to be http://PROJECT.E…
jonpugh Dec 15, 2016
320fae7
Changing git commit task to use d()->platform->repo_root.
jonpugh Aug 17, 2017
0b2f24d
Don't run drush status, we don't know if a site is available.
jonpugh Jul 17, 2017
8d46e26
Only write drush aliases if project name was found.
jonpugh Jul 11, 2017
ab4d51f
Massive improvements to Sync UI
jonpugh Jul 14, 2017
802bf57
Add target=_blank to environment links.
jonpugh Jul 15, 2017
81befce
Check node/add/site when deciding to show add environment button.
jonpugh Jul 18, 2017
ecb38a4
Merge pull request #80 from opendevshop/updates
jonpugh Aug 31, 2017
e42d646
Merge pull request #81 from opendevshop/improvements
jonpugh Sep 1, 2017
51fff17
Revert "Load PR data into environment settings so it gets saved in co…
jonpugh Sep 5, 2017
7956b1e
Pulling devshop_prepare_platform_node() function from makefiles branc…
jonpugh Sep 5, 2017
4e3aa15
Merge pull request #82 from opendevshop/prepare-platform
jonpugh Sep 5, 2017
da9b177
Always load $site_node->profile_name. Site's cloned from sites instal…
jonpugh Sep 5, 2017
96720d5
Merge pull request #83 from opendevshop/clone-of-custom-profile-fail
jonpugh Sep 5, 2017
b0ae814
Renaming function devshop_drush_process() to just devshop_process().
jonpugh Sep 6, 2017
f75301d
Merge pull request #84 from opendevshop/rename-devshop-process
jonpugh Sep 6, 2017
c953a37
Bumping aegir SSH to 1.0.
jonpugh Sep 6, 2017
882960e
Reverting changes that shouldn't have been merged re:makefiles.
jonpugh Sep 6, 2017
29351fe
Set correct aegir logs folder.
jonpugh Sep 6, 2017
e68ac16
Enable fix_permissions and fix_ownership modules on install.
jonpugh Sep 7, 2017
6b0ac01
Fixes opendevshop/devshop#170: Ajax for domain aliases breaking becau…
jonpugh Sep 7, 2017
9d6d779
Link to the site edit page, not the project sub url.
jonpugh Sep 7, 2017
b6591fa
Remove commented out code.
jonpugh Sep 7, 2017
c1a40c6
Link to the site edit page, not the project sub url.
jonpugh Sep 7, 2017
e464bc9
Remove unused node/%/edit/env/NAME page.
jonpugh Sep 7, 2017
a392044
Merge pull request #86 from opendevshop/fix-domain-add
jonpugh Sep 7, 2017
73de3bb
Merge branch '1.x' of github.com:opendevshop/devmaster into fix-domai…
jonpugh Sep 7, 2017
01fc553
Bumping Hosting Tasks Extras to 3.111
jonpugh Sep 7, 2017
09f1266
Adding drupal-org-core.make and build-devmaster.make so drupal.org ca…
jonpugh Sep 7, 2017
7a32c7f
Merge pull request #85 from opendevshop/add-fix-permissions
jonpugh Sep 14, 2017
34885a3
Load profile_name into site nodes if profile is empty. Fixes opendev…
jonpugh Sep 21, 2017
ab91d62
Merge pull request #88 from opendevshop/236-missing-profile-on-clone
jonpugh Sep 21, 2017
21143d2
Bump all Aegir modules to 3.120
jonpugh Sep 22, 2017
318d21e
Bumping versions of aegir config, aegir ansible, and aegir cloud.
jonpugh Sep 25, 2017
d0b71d3
Fixes opendevshop/devshop#228: Git Submodules don't init when checkin…
jonpugh Sep 25, 2017
fd3600a
Merge pull request #90 from opendevshop/228-submodule-init-on-tag
jonpugh Sep 25, 2017
a307bf4
Avoid problems if we lost the platform ID
jonpugh Sep 25, 2017
626de12
Moving contrib modules to drupal-org.make.
jonpugh Sep 25, 2017
1367cbe
Merge pull request #92 from opendevshop/drupal-org-make
jonpugh Sep 26, 2017
cf1ef31
Replacing accidentally lost versions in makefile.
jonpugh Sep 26, 2017
2565efc
Merge branch '1.x' of github.com:opendevshop/devmaster into drupal-or…
jonpugh Sep 26, 2017
4791c73
Merge pull request #93 from opendevshop/drupal-org-make
jonpugh Sep 26, 2017
762b0f9
Remove duplicate include statement for development make yml.
jonpugh Sep 26, 2017
bbd2f38
Removing quotes from version for easier sed.
jonpugh Sep 26, 2017
4a7041e
Comment out hosting_https from makefile.
jonpugh Sep 26, 2017
d2e735c
whitespace in makefile
jonpugh Sep 26, 2017
f00309d
Removing devel module from drupal-org.make file since it is now in bu…
jonpugh Sep 26, 2017
7b4a09e
Remove fix_permissions and fix_ownership from devmaster install.
jonpugh Sep 26, 2017
205eaf8
Disable and uninstall the module. We can remove it on the next release.
jonpugh Sep 26, 2017
ad98fc3
Removing distro_update from devmaster install profile.
jonpugh Sep 26, 2017
01558d5
Bumping bootstrap module to 3.15
jonpugh Sep 26, 2017
3df2e2d
Merge branch '1.x' into remove-distro-update
jonpugh Sep 26, 2017
ef851a7
Moving all development makefile data to build-devmaster-dev.make.yml.…
jonpugh Sep 26, 2017
1054fbb
Merge pull request #95 from opendevshop/yml-dev-makefile
jonpugh Sep 26, 2017
2600ce9
Merge branch '1.x' into remove-distro-update
jonpugh Sep 26, 2017
8951b4c
Merge pull request #94 from opendevshop/remove-distro-update
jonpugh Sep 26, 2017
1a83e56
Use --no-dev option so we use build-devmaster.make for now. Travis c…
jonpugh Sep 26, 2017
b2fc410
Update old hosting_context records for projects that may have been sa…
jonpugh Sep 27, 2017
63c0a8b
Attempt to override development make yml instead of build-devmaster.make
jonpugh Sep 27, 2017
e208244
Fixing YML formatting in Travis.yml
jonpugh Sep 27, 2017
d919246
Copy the devmaster makefile for travis forks over the default makefil…
jonpugh Sep 27, 2017
06f0d95
Merge pull request #97 from opendevshop/travis-dev-yml
jonpugh Sep 27, 2017
87e0a32
Merge pull request #96 from opendevshop/update-contexts
jonpugh Sep 27, 2017
b9fcb6f
Removing manual addition of + icon. Apparently bootstrap theme does t…
jonpugh Dec 18, 2017
93ba8a6
Handle no install profiles, just in case. Seeing tons of warnings com…
jonpugh Dec 18, 2017
cc27876
Fix Project aliases so they are written before every task.
jonpugh Dec 19, 2017
5beae4c
Don't run composer install in our own module. Git hooks should handle…
jonpugh Dec 27, 2017
647760a
Don't just include once. Settings.php might get bootstrapped more tha…
jonpugh Jan 30, 2018
d8c51e4
Environment and project properties are now just strings.
jonpugh Jan 30, 2018
b4c8fc7
Merge branch '7.x-1.x' of git.drupal.org:project/devmaster into 7.x-1.x
jonpugh Jan 30, 2018
125baf5
Merge branch 'hosting-git-hooks' into 1.x
jonpugh Jan 30, 2018
c4518d5
Removing Aegir Ansible and Aegir Cloud from devmaster. These two are …
jonpugh Jan 30, 2018
675d41a
Set --force option in Delete task, to ensure bad sites get deleted.
jonpugh Jan 31, 2018
dcc468b
Also force delete platforms.
jonpugh Jan 31, 2018
4830f84
Make sure to check for enabled platform.
jonpugh Jan 31, 2018
8459aff
Partial revert of 675d41adc78415dba10dc4a24b3eb9868da7d2f9 : Hosting …
jonpugh Jan 31, 2018
193fc2f
Set hosting_delete_force variable in install profile and update hook.
jonpugh Jan 31, 2018
a9b1e87
Update contrib.
jonpugh Feb 20, 2018
bb05cd8
Merge pull request #99 from opendevshop/contrib-updates
jonpugh Feb 20, 2018
1e21079
Fix variable name to avoid notice.
jonpugh Feb 20, 2018
0b4f0c8
Removing unused cloned indicator.
jonpugh Feb 20, 2018
5b100f1
Add a dummy filter to avoid missing argument problems.
jonpugh Feb 20, 2018
9453ed0
Merge branch '1.x' of github.com:opendevshop/devmaster into 1.x
jonpugh Feb 20, 2018
ae96ff9
Don't use & in foreach(), it causes hanging in PHP7!
jonpugh Feb 20, 2018
256f9c3
Fix checking for "unfinished project" message.
jonpugh Feb 20, 2018
258a6fa
Fixing eldir version.
jonpugh Feb 20, 2018
506558d
Fixing detection of "create" vs "edit" submissions.
jonpugh Feb 20, 2018
f974129
Remove more reference foreach variables.
jonpugh Feb 20, 2018
8d373b2
Merge branch '1.x' into project-settings-error-2
jonpugh Feb 21, 2018
32a0321
Merge branch '1.x' into allow-domain-change
jonpugh Feb 21, 2018
8c5d14a
Merge pull request #101 from opendevshop/project-settings-error-2
jonpugh Feb 21, 2018
7a54e58
Merge pull request #100 from opendevshop/allow-domain-change
jonpugh Feb 21, 2018
ecb0811
Bumping to Drupal 7.57
jonpugh Feb 22, 2018
75ea0a0
Fixing incorrect contrib versions
jonpugh Feb 22, 2018
d744f5b
Merge pull request #102 from opendevshop/drupal-757
jonpugh Feb 22, 2018
d2221f7
Bumping hosting.module to 3.14.1
jonpugh Feb 22, 2018
c5b191a
Don't write aliases for servers.
jonpugh Mar 2, 2018
d6ba944
Load full server nodes into environment->servers, then use that to ad…
jonpugh Mar 2, 2018
72a661a
Don't load tasks by "type", because multiple verify tasks overwrite e…
jonpugh Mar 9, 2018
95effde
Don't alter the port of the link if port is 0.
jonpugh Mar 13, 2018
c2602b5
Allow verification link for projects.
jonpugh Mar 13, 2018
2ad2e95
Show a bigger error message with a button to fix it, instead of the w…
jonpugh Mar 13, 2018
bb429a3
Remove the composer deploy hook configuration. Provision now always r…
jonpugh Mar 13, 2018
4e4a5a5
Add "private" directory to recommended git ignore.
jonpugh Mar 27, 2018
416cd18
Enable aegir download, commit, update, and config.
jonpugh Mar 27, 2018
db0a227
Enable aegir download, commit, update, and config.
jonpugh Mar 27, 2018
08c3b14
Fix update hook to also enable aegir_features.
jonpugh Mar 27, 2018
8ca5dbd
Fixing suggested git ignore.
jonpugh Mar 27, 2018
2e1372a
Updating ctools and bootstrap.
jonpugh Mar 27, 2018
0664599
Test 7.x-1.x branch.
jonpugh Mar 27, 2018
519f8dd
Add a "Commit & Push" checkbox to the Update Drupal task form, and us…
jonpugh Mar 27, 2018
873bfdf
Limit git diff on commit form to 1000 lines, just like we do on envir…
jonpugh Mar 27, 2018
8612e3d
Detect drupal8, and if composer.json is present, run composer update …
jonpugh Mar 27, 2018
df11744
Use the branch of hosting_git that allows you to tag releases.
jonpugh Mar 28, 2018
1099843
Refactoring environment_menu code to move all items to the hook, and …
jonpugh Mar 28, 2018
3838f3c
Adding update hook to enable hosting_git_tag module
jonpugh Mar 28, 2018
9f89eb9
Merge pull request #105 from opendevshop/git-tag
jonpugh Mar 28, 2018
cde5aba
Bumping to future drupal 7.58
jonpugh Mar 28, 2018
cc9491c
Merge pull request #106 from opendevshop/drupal-7.58
jonpugh Mar 28, 2018
081a5ba
If not empty, then print.
jonpugh Mar 29, 2018
f25b6ee
Don't append to a variable that doesn't exist.
jonpugh Mar 29, 2018
87919f0
Merge branch '1.x' of github.com:opendevshop/devmaster into 1.x
jonpugh Mar 29, 2018
eca37b1
Merge branch '1.x' into 7.x-1.x
jonpugh Mar 29, 2018
f08c81b
Check for array before using current.
jonpugh Mar 29, 2018
64e91b9
Check for array before using current, also check that tasks exists at…
jonpugh Mar 29, 2018
341c1bf
Improve help text for "path to drupal" field.
jonpugh Apr 18, 2018
138ad8e
Return errorOutput if process failed.
jonpugh Apr 18, 2018
22aea06
Check output of hook commands to offer instructions when the PHP vers…
jonpugh Apr 18, 2018
b050026
Change "Tag a Release" to "Create a Tag" to be more literal. We might…
jonpugh Apr 25, 2018
42ab68c
Revert hosting_git back to version.
jonpugh Apr 25, 2018
24e818d
Add an ID to the webhook form element so we can target it.
jonpugh Apr 25, 2018
9ea9784
Adding pull request test, step and dummy payload JSON object.
jonpugh Apr 25, 2018
b7a3f3e
Merge pull request #107 from opendevshop/7.x-3.x-github-pr-tests
jonpugh Apr 25, 2018
4cefbaa
Commenting out PR test
jonpugh Apr 25, 2018
8ed809e
Merge branch '7.x-1.x' of github.com:opendevshop/devmaster into 7.x-1.x
jonpugh Apr 25, 2018
679b614
Work on behat PR tests
jonpugh Apr 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

# devshop repos
source

# Local config
.vagrant
; Ignore modules from make file.
modules/contrib
modules/aegir
themes/contrib
14 changes: 0 additions & 14 deletions .idea/codeStyleSettings.xml

This file was deleted.

96 changes: 80 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,85 @@
---
##
language: php

language: python
python: "2.7"
install:
sudo: required

# Install DevShop with the standalone installer, using local playbooks.
# Run as actual root? Testing to see if this is a problem.
- sudo su - root -c "wget http://getdevshop.com/install && bash install"
# Only run test when committing to 1.x branch.
branches:
only:
- 7.x-1.x

script:
env:
global:
- DEVSHOP_VERSION=1.x
- SITE_HOSTS='dev.drup.devshop.travis dev.projectname.devshop.travis live.projectname.devshop.travis testenv.drpl8.devshop.travis'

matrix:
- test="Upgrade"
COMMAND="robo up --test-upgrade"
UPGRADE_FROM_VERSION="1.0.0-beta10"

- test="Install with Docker"
COMMAND="robo up --test"

- test="Install with Ansible on Ubuntu 14.04 with Apache"
COMMAND="robo up --mode=install.sh --test"

# - test="Install with Ansible on Ubuntu 14.04 with NGINX"
# COMMAND="robo up --mode=install.sh --test --install-sh-options='--server-webserver=nginx'"

- test="Install with Ansible on CentOS 7"
COMMAND="robo up --mode=install.sh --install-sh-image=geerlingguy/docker-centos7-ansible --test"


services:
- docker

# Test for DevShop
- sudo su - aegir -c "drush @hostmaster status"
- sudo su -c "cd /usr/share/devshop/tests && composer update"
- sudo su aegir -c "cd /usr/share/devshop/tests && bin/behat --profile travis"
before_install:
- pwd
- env

# Install Robo
- wget https://github.com/consolidation/Robo/releases/download/1.0.5/robo.phar
- sudo mv robo.phar /usr/local/bin/robo
- sudo chmod +x /usr/local/bin/robo

# Install Drush
- wget https://github.com/drush-ops/drush/releases/download/8.1.9/drush.phar
- sudo mv drush.phar /usr/local/bin/drush
- sudo chmod +x /usr/local/bin/drush

# Clone devshop
- cd ..
- git clone http://github.com/opendevshop/devshop
- cd devshop
- git checkout -qf ${DEVSHOP_VERSION}
- git status
- pwd
- cp build-devmaster-travis-forks.make.yml build-devmaster-dev.make.yml
- cat build-devmaster-dev.make.yml

# Prepare devshop CLI.
- composer install

script:
- ${COMMAND} -n --no-dev

# Notify devshop IRC chatroom.
notifications:
irc: "chat.freenode.net#devshop"
# - container_id=$(mktemp)
# # Run container in detached state
# - 'sudo docker run --detach --name devshop_container --volume="${PWD}/devshop":/usr/share/devshop:rw --volume="${PWD}":/usr/share/devshop/devmaster:rw ${run_opts} -h devshop.travis --add-host "${SITE_HOSTS}":127.0.0.1 ${distribution}-${version}:ansible "${init}" > "${container_id}"'
#
# # Install script.
# - 'sudo docker exec devshop_container env TRAVIS=true TERM=xterm TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG DEVSHOP_UPGRADE_TO_VERSION=$DEVSHOP_UPGRADE_TO_VERSION TRAVIS_PULL_REQUEST_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH ${install_command} --makefile=/usr/share/devshop/devmaster/build-devmaster-test.make'
#
# # Hostmaster Status
# - 'sudo docker exec devshop_container env TERM=xterm sudo su - aegir -c "drush @hostmaster status"'
#
# # Turn off hosting queued, and the hosting task queue.
# - 'sudo docker exec devshop_container env sudo su - aegir -c "drush @hostmaster dis hosting_queued -y -v"'
# - 'sudo docker exec devshop_container env sudo su - aegir -c "drush @hostmaster vset hosting_queue_tasks_enabled 0 -y"'
#
# # Build and Run Tests
# - 'sudo docker exec devshop_container env TERM=xterm sudo su - -c "cd /usr/share/devshop/tests && composer update"'
# - 'sudo docker exec devshop_container env TERM=xterm sudo su - aegir -c "devshop devmaster:test"'
#
# # Stop container.
# - 'sudo docker stop devshop_container'
13 changes: 13 additions & 0 deletions API.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DevShop Provision API
=====================

Document in Progress.

Drush Hooks
-----------

You can add drush hooks to act before or after devshop tasks.

An example of a post-deploy hook is in the file deploy_hooks_examples/devshop.drush.inc

Copy this file to sites/all/drush and use it for your specific site.
78 changes: 10 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,17 @@
DevShop
=======
DevShop DevMaster
=================

Welcome to the DevShop Source code.
This is the DevShop web-based front-end, called Devmaster.

[![Build Status](https://travis-ci.org/drupalprojects/devshop.svg?branch=6.x-1.x)](https://travis-ci.org/drupalprojects/devshop)
It is a Drupal Install Profile and Makefile, otherwise known as a "Distribution".

Contents
--------
Please fork this repo if you wish to contribute to the Drupal based front-end of DevShop.

This project contains four important components to DevShop
More information about DevShop can be found in the [main project repository](https://github.com/opendevshop/devshop).

1. install.sh
A bash script to go from zero to DevShop. All you need is a new server and this script.
This script is designed to work all by itself, and is not dependent on the other files in this repo to run.
Issues & Development
====================

2. build-devshop.make
The makefile used to build the DevShop front-end.
All issues for any DevShop repository are located in the main project: [https://github.com/opendevshop/devshop/issues](https://github.com/opendevshop/devshop/issues)

3. devshop.profile
The Drupal installation profile for DevShop. Used to setup the front end.

4. Vagrantfile
Allows devshop to be launched with Vagrant. Used for testing and development. See README.vagrant.md for more info.

Installation
------------

1. Pick a domain and server name to use for DevShop, for example "devshop.thinkdrop.net"
2. Fire up a linux server somewhere, using that domain name as the server's hostname. (Ubuntu 12.04 is the most tested.)
- Rackspace and DigitalOcean use the name of the server to automatically set the hostname, so use your domain name
as the server name when creating it.
- On Amazon Web Services you must [change the hostname manually](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html).
- On Linode, you must also [set the hostname manually](https://www.linode.com/docs/getting-started#setting-the-hostname).
3. Add a DNS record that points your domain name (devshop.thinkdrop.net) to your server's IP address.
4. Add a second DNS record that points a wildcard subdomain of your domain (*.devshop.thinkdrop.net) to your server's IP
address. This allows you to setup new sites without having to mess with DNS every time.
5. Login to your server as root, and retrieve and run the install script:
```
root@devshop:~# wget http://getdevshop.com/install
root@devshop:~# bash install
```

*NOTE:* http://getdevshop.com/install simply redirects to the dev version of install.sh: http://drupalcode.org/project/devshop.git/blob_plain/refs/heads/6.x-1.x:...


Usage
-----

Using devshop is a lot like using aegir.

Visit http://devshop.thinkdrop.net in the browser to view the front-end.

SSH into your server as the `aegir` user to access the back-end.

Use drush to access any of your sites. Use `drush sa` to see the list of available aliases.

Vagrant
-------

There is now a vagrantfile for DevShop that makes for an easy way to test it out and to contribute to the development of DevShop.

It is included in this package. To use, clone this repo and vagrant up:

See README.vagrant.md for more information.

Testing
-------

Very rudimentary testing is happening on TravisCI at http://travisci.org/drupalprojects/devshop

The install script has been tested on:

- ubuntu 12.04
- centos 7.0
To contribute to development, please see the [Development](https://docs.opendevshop.com/development.html) section of the documentation.
11 changes: 0 additions & 11 deletions README.txt

This file was deleted.

1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.x
13 changes: 13 additions & 0 deletions build-devmaster.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
;
; Loads the DevMaster install profile from drupal.org.
;
; This makefile is used by the DevShop standalone installer to build devmaster.
;

core = 7.x
api = 2

includes[] = drupal-org-core.make
projects[devmaster][type] = profile
projects[devmaster][download][type] = git
projects[devmaster][download][branch] = 7.x-1.x
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": {
"symfony/process": "^2.7",
"cpliakas/git-wrapper": "~1.0"
}
}
Loading