Skip to content

Commit

Permalink
updating create_package for revised CodeClimate and CircleCI GUIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed May 10, 2018
1 parent 851a4e0 commit 9dc39c9
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions karr_lab_build_utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ def create_package(self):
print('Cick the "Test coverage" menu item')
click.confirm('Continue?', default=True, abort=True)
code_climate_repo_token = click.prompt('Enter the "test reporter id"')
code_climate_repo_id = click.prompt('Enter the repository ID (ID in the URL https://codeclimate.com/repos/<id>/settings/test_reporter)')

print('Cick the "Badges" menu item')
click.confirm('Continue?', default=True, abort=True)
code_climate_repo_id = click.prompt('Enter the repository ID (ID in the URL https://codeclimate.com/repos/<id>/maintainability)')
code_climate_repo_badge_token = click.prompt(
'Enter the badge token (token in the URL https://api.codeclimate.com/v1/badges/<token>/maintainability)')

Expand All @@ -325,7 +325,7 @@ def create_package(self):
print('Visit "https://coveralls.io/repos/new"')
click.confirm('Continue?', default=True, abort=True)

print('Click the "SYNC REPOS" button')
print('Click the "ADD REPOS" button')
click.confirm('Continue?', default=True, abort=True)

print('Search for the "{}/{}" repository and click its "OFF" button'.format(self.repo_owner, name))
Expand All @@ -340,8 +340,13 @@ def create_package(self):

print('Click the "README BADGE" EMBED" button')
click.confirm('Continue?', default=True, abort=True)
coveralls_repo_badge_token = click.prompt(
'Enter the badge token (token in the URL https://coveralls.io/repos/github/KarrLab/test_a/badge.svg?t=<token>')
if private:
coveralls_repo_badge_token = click.prompt(
'Enter the badge token (token in the URL https://coveralls.io/repos/github/KarrLab/test_a/badge.svg?t=<token>')
else:
coveralls_repo_badge_token = click.prompt(
'Enter the badge token (token in the URL https://coveralls.io/repos/github/KarrLab/test_a/badge.svg')


# CircleCI
# :todo: programmatically create CircleCI build
Expand All @@ -359,7 +364,7 @@ def create_package(self):
print('Visit "https://circleci.com/add-projects/gh/KarrLab"')
click.confirm('Continue?', default=True, abort=True)

print('Search for the "{}" repository and click its "Follow project" button'.format(name))
print('Search for the "{}" repository and click its "Setup project" button'.format(name))
click.confirm('Continue?', default=True, abort=True)

print('Click the "Project settings" icon')
Expand Down Expand Up @@ -395,8 +400,8 @@ def create_package(self):
# Read the Docs
if not private:
# :todo: programmatically add repo to Read the Docs
# print('Visit "https://readthedocs.org/dashboard/import/?"')
# click.confirm('Continue?', default=True, abort=True)
print('Visit "https://readthedocs.org/dashboard/import/?"')
click.confirm('Continue?', default=True, abort=True)

print('Click the "refresh" icon')
click.confirm('Continue?', default=True, abort=True)
Expand Down Expand Up @@ -425,7 +430,7 @@ def create_package(self):
print('Click the "Maintainers" menu item')
click.confirm('Continue?', default=True, abort=True)

print('Add "jonrkarr" to the maintainers')
print('Add "karr-lab-daemon" to the maintainers')
click.confirm('Continue?', default=True, abort=True)

print('Click the "Notifications" menu item')
Expand Down

0 comments on commit 9dc39c9

Please sign in to comment.