refactoring net to be dotnet
This commit is contained in:
Родитель
c015de3db6
Коммит
eae9401b78
|
@ -9,5 +9,5 @@ WINDOWS = 2
|
|||
|
||||
PYTHON = 0
|
||||
NODE = 1
|
||||
NET = 2
|
||||
DOTNET = 2
|
||||
JAVA = 3
|
||||
|
|
|
@ -63,6 +63,9 @@ class RepositoryManager(BaseManager):
|
|||
succeeded = True
|
||||
return models.repository_response.RepositoryResponse(message, succeeded)
|
||||
|
||||
def setup_remote(self, repository_name):
|
||||
#TODO setup remote command
|
||||
print("unimplemented")
|
||||
|
||||
def _repository_exists(self):
|
||||
"""Helper to see if gitfile exists"""
|
||||
|
|
|
@ -7,7 +7,7 @@ import os.path as path
|
|||
import logging
|
||||
import json
|
||||
from jinja2 import Environment, PackageLoader, select_autoescape
|
||||
from azure_devops_build_manager.constants import (LINUX_CONSUMPTION, LINUX_DEDICATED, WINDOWS, PYTHON, NODE, NET, JAVA)
|
||||
from azure_devops_build_manager.constants import (LINUX_CONSUMPTION, LINUX_DEDICATED, WINDOWS, PYTHON, NODE, DOTNET, JAVA)
|
||||
|
||||
class YamlManager(object):
|
||||
""" Generate yaml files for devops
|
||||
|
@ -30,9 +30,9 @@ class YamlManager(object):
|
|||
elif self._language == NODE:
|
||||
language_str = 'node'
|
||||
dependencies = self._node_dependencies()
|
||||
elif self._language == NET:
|
||||
language_str = 'net'
|
||||
dependencies = self._net_dependencies()
|
||||
elif self._language == DOTNET:
|
||||
language_str = 'dotnet'
|
||||
dependencies = self._dotnet_dependencies()
|
||||
elif self._language == JAVA:
|
||||
language_str = 'java'
|
||||
dependencies = self._java_dependencies()
|
||||
|
@ -93,8 +93,8 @@ class YamlManager(object):
|
|||
dependencies.append(' npm run build')
|
||||
return dependencies
|
||||
|
||||
def _net_dependencies(self):
|
||||
"""Helper to create the standard net dependencies"""
|
||||
def _dotnet_dependencies(self):
|
||||
"""Helper to create the standard dotnet dependencies"""
|
||||
dependencies = []
|
||||
dependencies.append('- script: |')
|
||||
dependencies.append(' dotnet restore')
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
from azure_devops_build_manager.constants import LINUX_CONSUMPTION, LINUX_DEDICATED, WINDOWS, NODE, PYTHON, JAVA, NET
|
||||
from azure_devops_build_manager.constants import LINUX_CONSUMPTION, LINUX_DEDICATED, WINDOWS, NODE, PYTHON, JAVA, DOTNET
|
||||
|
||||
"""This file contains the configs needed for the tests"""
|
||||
|
||||
|
@ -29,4 +29,4 @@ FUNCTIONAPP_NAME = '{functionapp name}'
|
|||
STORAGE_NAME = '{storage name}'
|
||||
RESOURCE_GROUP_NAME = '{resource group name}'
|
||||
FUNCTIONAPP_TYPE = '{Functionapp type}' # choose from LINUX_CONSUMPTION, LINUX_DEDICATED, WINDOWS
|
||||
FUNCTIONAPP_LANGUAGE = '{Functionapp language}' # choose from NODE, PYTHON, JAVA, NET
|
||||
FUNCTIONAPP_LANGUAGE = '{Functionapp language}' # choose from NODE, PYTHON, JAVA, DOTNET
|
||||
|
|
Загрузка…
Ссылка в новой задаче