Exemplo n.º 1
0
            actionSetNugetKey()

        if ACTION_PUBLISH_NUGET in Settings.actions:
            actionPublishNuget()

        if ACTION_UPDATE_SAMPLE in Settings.actions:
            actionUpdatePublishedSample()

        if ACTION_RUN_UNITTESTS in Settings.actions:
            actionRunUnitTests()

        #Show a message if NuGet source needs to be set manually
        if NugetUtility.setNugetSourceManualy:
            Logger.printColorMessage(
                NugetUtility.set_source_instruction +
                NugetUtility.setNugetSourceManualy, ColoredFormatter.YELLOW)

    except KeyboardInterrupt:
        handleKeyboardInterupt()

    if Settings.setservernoteversion is True:
        ReleaseNotes.set_note_version_server()

    end_time = time.time()
    Summary.printSummary(end_time - start_time)


if __name__ == '__main__':
    if System.checkIsPythonVersionSupported() == True:
        main()