From 6896934165c35d84e101bb2581d4d5587a32ec3e Mon Sep 17 00:00:00 2001 From: mirceaiuga <51483938+mirceaiuga@users.noreply.github.com> Date: Wed, 19 Jun 2019 13:42:55 +0300 Subject: [PATCH 1/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..eaf129c81 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,24 @@ +pool: + vmImage: 'ubuntu-16.04' +trigger: + - master +steps: + - task: CopyFiles@2 + displayName: 'Copy Files to: $(build.artifactstagingdirectory)/Templates' + inputs: + SourceFolder: deployment + Contents: '*.json' + TargetFolder: '$(build.artifactstagingdirectory)/Templates' + - task: Npm@1 + displayName: 'npm custom' + inputs: + command: custom + verbose: false + customCommand: 'install --production' + - task: ArchiveFiles@2 + displayName: 'Archive $(Build.SourcesDirectory)' + inputs: + rootFolderOrFile: '$(Build.SourcesDirectory)' + includeRootFolder: false + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' From d9eb942052c5b982eb084feaa7139625755df39f Mon Sep 17 00:00:00 2001 From: Mircea Iuga Date: Wed, 19 Jun 2019 14:25:48 +0300 Subject: [PATCH 2/3] added badge --- README.md | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index ba478ab97..3156db589 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,6 @@ +###[![Build Status](https://dev.azure.com/iugamircea0062/new%20test/_apis/build/status/mirceaiuga.ContosoAir?branchName=master)](https://dev.azure.com/iugamircea0062/new%20test/_build/latest?definitionId=2&branchName=master) - - -# Microsoft.Github CI Demo - -Demo website application for Contoso Air. -Runs a nodejs server (Express v4.16) that stores customer booked flights in a CosmosDb database. - -## Requirements - -* Node v8.9.4 or later -* Azure CosmosDb - -## Local Environment Setup - -This project uses ES6, and has been tested with nodejs v8.9.4 -There is almost no front-end logic. Still, the application uses webpack to compile sass styles and bundle third parties js files. If you want to modify any front logic or style run `npm run local:build`. - +asd In order to launch a local server on port 3000 (can be modified with environment variable PORT) run: ```bash @@ -23,8 +8,6 @@ npm install SET %COSMOS_DB_NAME%= SET %COSMOS_DB_AUTH_KEY%= npm start -``` - This will run locally the server and attach to the CosmosDb Endpoint using mongodb connection string. ## Azure Manual Deployment From cd3cf5f697540b999891afe9572adc7ac207f016 Mon Sep 17 00:00:00 2001 From: Mircea Iuga Date: Wed, 19 Jun 2019 14:32:48 +0300 Subject: [PATCH 3/3] renamed --- README.md => rdme.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) rename README.md => rdme.md (93%) diff --git a/README.md b/rdme.md similarity index 93% rename from README.md rename to rdme.md index 3156db589..47e9da195 100644 --- a/README.md +++ b/rdme.md @@ -1,7 +1,9 @@ ###[![Build Status](https://dev.azure.com/iugamircea0062/new%20test/_apis/build/status/mirceaiuga.ContosoAir?branchName=master)](https://dev.azure.com/iugamircea0062/new%20test/_build/latest?definitionId=2&branchName=master) -asd -In order to launch a local server on port 3000 (can be modified with environment variable PORT) run: +ddddsdddddsdsddddddddddd + + + server on port 3000 (can be modified with environment variable PORT) run: ```bash npm install @@ -9,11 +11,6 @@ SET %COSMOS_DB_NAME%= SET %COSMOS_DB_AUTH_KEY%= npm start This will run locally the server and attach to the CosmosDb Endpoint using mongodb connection string. - -## Azure Manual Deployment - -In order to create the Azure deploy there is an ARM template located at deployment folder. - ARM template parameter | Usage | e.g. --- | --- | --- p_environment | set an environment suffix | `dev`