Some checks failed
		
		
	
	Lint Checks / Run linter (push) Successful in 41s
				
			Publish / Build and publish (push) Successful in 1m22s
				
			Deploy Test / Run deploy test suite (push) Successful in 4m58s
				
			Webapp Test / Run webapp test suite (push) Successful in 4m27s
				
			Smoke Test / Run basic test suite (push) Successful in 5m8s
				
			Fixturenet-Laconicd-Test / Run Laconicd fixturenet and Laconic CLI tests (push) Successful in 14m11s
				
			Fixturenet-Eth-Plugeth-Arm-Test / Run an Ethereum plugeth fixturenet test (push) Failing after 1s
				
			K8s Deploy Test / Run deploy test suite on kind/k8s (push) Failing after 1s
				
			Fixturenet-Eth-Plugeth-Test / Run an Ethereum plugeth fixturenet test (push) Failing after 3h8m0s
				
			Database Test / Run database hosting test on kind/k8s (push) Successful in 8m33s
				
			Container Registry Test / Run contaier registry hosting test on kind/k8s (push) Successful in 3m45s
				
			External Stack Test / Run external stack test suite (push) Successful in 4m41s
				
			Reviewed-on: #806 Co-authored-by: David Boreham <david@bozemanpass.com> Co-committed-by: David Boreham <david@bozemanpass.com>
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# Copyright © 2022, 2023 Vulcanize
 | 
						|
 | 
						|
# This program is free software: you can redistribute it and/or modify
 | 
						|
# it under the terms of the GNU Affero General Public License as published by
 | 
						|
# the Free Software Foundation, either version 3 of the License, or
 | 
						|
# (at your option) any later version.
 | 
						|
 | 
						|
# This program is distributed in the hope that it will be useful,
 | 
						|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
# GNU Affero General Public License for more details.
 | 
						|
 | 
						|
# You should have received a copy of the GNU Affero General Public License
 | 
						|
# along with this program.  If not, see <http:#www.gnu.org/licenses/>.
 | 
						|
 | 
						|
# env vars:
 | 
						|
# CERC_REPO_BASE_DIR defaults to ~/cerc
 | 
						|
 | 
						|
 | 
						|
import click
 | 
						|
import os
 | 
						|
 | 
						|
from decouple import config
 | 
						|
from git import exc
 | 
						|
 | 
						|
from stack_orchestrator.opts import opts
 | 
						|
from stack_orchestrator.repos.setup_repositories import process_repo
 | 
						|
from stack_orchestrator.util import error_exit
 | 
						|
 | 
						|
 | 
						|
@click.command()
 | 
						|
@click.argument('stack-locator')
 | 
						|
@click.option('--git-ssh', is_flag=True, default=False)
 | 
						|
@click.option('--check-only', is_flag=True, default=False)
 | 
						|
@click.option('--pull', is_flag=True, default=False)
 | 
						|
@click.pass_context
 | 
						|
def command(ctx, stack_locator, git_ssh, check_only, pull):
 | 
						|
    '''optionally resolve then git clone a repository containing one or more stack definitions'''
 | 
						|
    dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc"))
 | 
						|
    if not opts.o.quiet:
 | 
						|
        print(f"Dev Root is: {dev_root_path}")
 | 
						|
    try:
 | 
						|
        process_repo(pull, check_only, git_ssh, dev_root_path, None, stack_locator)
 | 
						|
    except exc.GitCommandError as error:
 | 
						|
        error_exit(f"\n******* git command returned error exit status:\n{error}")
 |