def __call__(self, args, executor):
     maven = MavenCallable(args, process_utils=self.process_utils)
     try:
         maven.require_mvn3()
         maven.project('jira-components/jira-core').option('-am').phase('process-classes').profile('findbugs')
         if not args.skip_bp: maven.project('jira-components/jira-plugins/jira-bundled-plugins')
         executor.append(maven)
     except MavenVersionInaccessibleException as e:
         executor.append(maven.mvn3_inaccessible_msg_callable('findbugs', e))
    def __call__(self, args, executor):
        maven = MavenCallable(args)
        try:
            maven.require_mvn3()
            maven.project('jira-components/jira-api').option('-am').phase('verify').property('performApiCheck')
            executor.append(maven)

        except MavenVersionInaccessibleException as e:
            executor.append(maven.mvn3_inaccessible_msg_callable('api-check', e))
Exemple #3
0
    def __call__(self, args, executor):
        maven = MavenCallable(args)
        try:
            maven.require_mvn3()
            maven.project('jira-components/jira-api').option('-am').phase(
                'verify').property('performApiCheck')
            executor.append(maven)

        except MavenVersionInaccessibleException as e:
            executor.append(
                maven.mvn3_inaccessible_msg_callable('api-check', e))
Exemple #4
0
 def __call__(self, args, executor):
     maven = MavenCallable(args, process_utils=self.process_utils)
     try:
         maven.require_mvn3()
         maven.project('jira-components/jira-core').option('-am').phase(
             'process-classes').profile('findbugs')
         if not args.skip_bp:
             maven.project(
                 'jira-components/jira-plugins/jira-bundled-plugins')
         executor.append(maven)
     except MavenVersionInaccessibleException as e:
         executor.append(maven.mvn3_inaccessible_msg_callable(
             'findbugs', e))
Exemple #5
0
    def __call__(self, args, executor):

        if self.fileutils.file_exists(dependencies_tmp):
            executor.append(lambda logger: self.fileutils.remove(dependencies_tmp) or 0)

        maven = MavenCallable(args, process_utils=self.process_utils)
        maven.projects = ['jira-components/jira-tests-parent/jira-tests',
                          'jira-components/jira-tests-parent/jira-tests-unit']
        if not args.skip_legacy:
            maven.project('jira-components/jira-tests-parent/jira-tests-legacy')
        maven.option('-am')
        maven.phase('compile' if args.vdep else 'test')
        maven.property('verifyDependencies').property('jira.minify.skip', 'true').property('performApiCheck').property(
            'ajEnforcer')

        maven.property('maven.test.func.skip', 'true').property('maven.test.selenium.skip', 'true')
        if not args.skip_bp:
            report_projects = ['jira-components/jira-tests-parent',
                               'jira-func-tests',
                               'jira-components/jira-plugins']
            maven.project('jira-components/jira-plugins/jira-bundled-plugins')
        else:
            report_projects = ['jira-components/jira-tests-parent',
                               'jira-func-tests']
            maven.project('jira-func-tests')

        try:
            maven.require_mvn3().can_run_in_parallel()
        except MavenVersionInaccessibleException:
            pass

        self.surefire.set_roots(report_projects)
        executor.append(self.surefire.clean_executable())

        if args.findbugs:
            try:
                executor.append(maven.phase('test').profile('findbugs').require_mvn3())
            except MavenVersionInaccessibleException as e:
                executor.append(maven.mvn3_inaccessible_msg_callable('unit tests with findbugs', e))
        else:
            if args.vdep:
                executor.append(maven.phase('compile'))
            else:
                executor.append(maven.phase('test').option('--fail-at-end'))
                executor.append_post(self.surefire.report_executable())

        executor.append_post(DependenciesReport(args))