Module: TddiumConstant::Text::Status

Defined in:
lib/tddium/constant.rb

Constant Summary collapse

NO_SUITE =
"You currently do not have any suites"
ALL_SUITES =
"Your suites: %s"
CURRENT_SUITE =
"Your current suite: %s"
CURRENT_SUITE_UNAVAILABLE =
"Your current suite is unavailable"
NO_ACTIVE_SESSION =
"There are no active sessions"
ACTIVE_SESSIONS =
"Your active sessions:"
NO_INACTIVE_SESSION =
"There are no previous sessions"
INACTIVE_SESSIONS =
"Your latest sessions:"
SESSION_DETAIL =
" open %s # %8.8s Started: %s"
ATTRIBUTE_DETAIL =
"    %s: %s"
SEPARATOR =
"====="
USING_SUITE =
"Using suite...\n\n%s"
USER_DETAILS =
<<EOF;

Username: <%=user["email"]%>
Account Created: <%=user["created_at"]%>
<% if user["trial_remaining"] && user["trial_remaining"] > 0 %>Trial Period Remaining: <%=user["trial_remaining"]%> days<% end %>
<% if user["account_url"] %>Account Management URL: <%=user["account_url"]%><% end %>
<% if user["heroku"] %>Heroku Account Linked: <%=user["heroku_activation_done"]%><% end %>
EO
HEROKU_CONFIG =
"
Tddium is configured to work with your Heroku app.

Next, you should:

1. Register your test suite by running:

$ tddium suite

2. Start tests by running:

$ tddium spec

"
SUITE_DETAILS =
<<EOF;
Repo: <%=suite["repo_name"]%>/<%=suite["branch"]%>
Default Test Pattern: <%=suite["test_pattern"]%>
Ruby Version: <%=suite["ruby_version"]%>
Rubygems Version: <%=suite["rubygems_version"]%>
Bundler Version: <%=suite["bundler_version"]%>
<% if suite["ci_pull_url"] %>
Tddium Hosted CI is enabled with the following parameters:

Pull URL: <%=suite["ci_pull_url"]%>
Push URL: <%=suite["ci_push_url"]%>

Notifications:
<%=suite["ci_notifications"]%>

>>> Authorize the following SSH key to let Tddium's pulls and pushes through:

<%=suite["ci_ssh_pubkey"]%>
<% if suite["ci_pull_url"] =~ /^[email protected]:(.*).git$/ %>
Tddium will pull from your Github repository. Visit

https://github.com/<%= $1 %>/admin/keys

then click "Add another deploy key" and copy and paste the above key.
<% end %>
<% if suite["ci_push_url"] =~ /^[email protected]:(.*).git$/ %>
Tddium will push to your Heroku application <%= $1 %>.
To authorize the key, use the following command:

heroku keys:add <%= tddium_deploy_key_file_name %> --app <%= $1 %>
<% end %>

<% if suite["ci_pull_url"] =~ /^[email protected]:(.*).git$/ %>
>>> Github can notify Tddium of your commits with a post-receive hook. Visit

https://github.com/<%= $1 %>/admin/hooks#generic_minibucket

then add the following URL and click "Update Settings":

<%=suite["hook_uri"]%>
<% else %>
>>> In order for Tddium to know that your repo has changed, you'll need to
    configure a post-commit hook in your Git server.

In Unix-based Git repositories, find the repository root and look for a shell
script in `.git/hooks/post-commit`.

To trigger CI builds, POST to the following URL from a post-commit hook:
<%=suite["hook_uri"]%>
<% end %>

>>> See http://www.tddium.com/support for more information on Tddium CI.
<% end %>

If your tests don't require a database or your app uses pure ActiveRecord
you're all set and can now run tddium spec.

>>> If your app needs database-specific features (triggers, stored procedures),
    you'll need to configure a custom database setup hook.

    See http://www.tddium.com/support/reference#setup_hooks to create a Rake
    task for Tddium to set up your database.

Run 'tddium suite --edit' to edit suite settings.

Run 'tddium spec' to run tests in this suite.
EO
ACCOUNT_MEMBERS =
"\nAuthorized users in this account:\n"