Пример #1
0
 def _build_prepare(self):
     with util.change_dir(self._source_directory):
         build_commands = [
             'git fetch',
             'git checkout {b} && git pull && git reset --hard {c}'.format(
                 c=COMPONENT_COMMIT_OR_TAG, b=COMPONENT_BRANCH),
         ]
         util.execute_shell_commands(build_commands)
Пример #2
0
 def _build(self):
     with util.change_dir(self._source_directory):
         build_commands = [
             'git fetch origin',
             'git checkout {version}'.format(version=CHECKPOINT_VERSION),
             'make switch',
         ]
         util.execute_shell_commands(build_commands)
Пример #3
0
 def _build_prepare(self):
     with util.change_dir(self._source_directory):
         build_commands = [
             'git fetch origin',
             'git checkout {c} && git reset --hard {c}'.format(c=COMPONENT_COMMIT_OR_TAG),
             'git submodule update --init --recursive',
         ]
         util.execute_shell_commands(build_commands)
Пример #4
0
 def clean(self):
     component_roots = [
         self._hbloader_source_directory,
         self._hbmenu_source_directory,
     ]
     for component_root in component_roots:
         with util.change_dir(component_root):
             util.execute_shell_commands(['make clean'])
Пример #5
0
 def _build(self):
     with util.change_dir(self._source_directory):
         build_commands = [
             'git fetch origin',
             'git checkout {version}'.format(version=HEKATE_COMMIT_OR_TAG),
             'make',
         ]
         util.execute_shell_commands(build_commands)
Пример #6
0
 def _build_hbmenu(self):
     component_root = Path(settings.components_directory, 'nx-hbmenu/')
     with util.change_dir(component_root):
         build_commands = [
             'git fetch origin',
             'git checkout {version}'.format(version=HBMENU_COMMIT_OR_TAG),
             'make nx',
         ]
         util.execute_shell_commands(build_commands)
Пример #7
0
    def _build(self):
        # Use a pre-built copy of sept-secondary since the keys to sign sept are not publicly available.
        os.environ['SEPT_ENC_PATH'] = str(Path(settings.defaults_directory, 'sept/sept-secondary.enc').resolve())

        with util.change_dir(self._source_directory):
            build_commands = [
                'git fetch origin',
                'git submodule update --recursive',
                'git checkout {}'.format(ATMOSPHERE_COMMIT_OR_TAG),
                'make',
            ]
            util.execute_shell_commands(build_commands)
Пример #8
0
 def _build_docker(self):
     with util.change_dir(self._dockerfiles_directory):
         util.dock_worker(DOCKER_IMAGE_NAME)
Пример #9
0
 def clean(self):
     with util.change_dir(self._source_directory):
         util.clean_component(DOCKER_IMAGE_NAME, COMPONENT_COMMIT_OR_TAG)
Пример #10
0
 def clean(self):
     with util.change_dir(self._source_directory):
         util.execute_shell_commands([
             'make clean',
         ])