diff --git a/add.py b/add.py new file mode 100644 index 0000000..6d6ac3b --- /dev/null +++ b/add.py @@ -0,0 +1,4 @@ +a=1.5 +b=2.4 +c=a+b +print('sum is :' ,c) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 0000000..e9a1aa6 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,55 @@ +trigger: + +- master + + +pool: + + + vmImage: 'ubuntu-latest' + + +strategy: + + + matrix: + + + Python27: + + + python.version: '2.7' + + + +steps: + + +- task: UsePythonVersion@0 + + + inputs: + + + versionSpec: '$(python.version)' + + + displayName: 'Use Python $(python.version)' + + +- script: python "add.py" + + + +- task: PythonScript@0 + + + inputs: + + + scriptSource: 'inline' + + + script: | + print('AZURE PIPELINE') + print('CONTINUOUS INTEGRATION & CONTINUOUS DEPLOYMENT') diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..27a798a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script'