From: Alexander Zhogov Date: Wed, 5 Aug 2020 09:44:37 +0000 (+0300) Subject: Azure CI: Install monitoring (#1640) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ccf3ecf530997f816689a55888103ca8aee3535;p=platform%2Fupstream%2Fdldt.git Azure CI: Install monitoring (#1640) * Azure CI: Install monitoring * Fix cleaning --- diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 21a0c24..084245a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,6 +12,11 @@ jobs: BIN_DIR: ../bin/intel64/$(BUILD_TYPE) steps: - script: | + git clean -xdf + git reset --hard HEAD + git submodule update --init --recursive --jobs $(WORKERS_NUMBER) + displayName: 'Clone submodules' + - script: | whoami uname -a which python3 @@ -24,6 +29,8 @@ jobs: vmstat -s df displayName: 'System properties' + - script: curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01" + displayName: Install monitoring - script: | sudo apt --assume-yes install libusb-1.0-0-dev python3 -m pip install -r ./inference-engine/ie_bridges/python/requirements.txt @@ -36,11 +43,6 @@ jobs: sudo cp -v ninja /usr/local/bin/ displayName: 'Install Ninja' - script: | - git clean -xdf - git reset --hard HEAD - git submodule update --init --recursive --jobs $(WORKERS_NUMBER) - displayName: 'Clone submodules' - - script: | mkdir dldt-build cd dldt-build displayName: 'Create build directory' @@ -137,6 +139,11 @@ jobs: inputs: versionSpec: '3.7' - script: | + git clean -xdf + git reset --hard HEAD + git submodule update --init --recursive --jobs $(WORKERS_NUMBER) + displayName: 'Clone submodules' + - script: | whoami uname -a which python3 @@ -153,11 +160,6 @@ jobs: - script: brew install ninja displayName: 'Install Ninja' - script: | - git clean -xdf - git reset --hard HEAD - git submodule update --init --recursive --jobs $(WORKERS_NUMBER) - displayName: 'Clone submodules' - - script: | mkdir dldt-build cd dldt-build displayName: 'Create build directory' @@ -244,6 +246,11 @@ jobs: MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe steps: - script: | + git clean -xdf + git reset --hard HEAD + git submodule update --init --recursive --jobs $(WORKERS_NUMBER) + displayName: 'Clone submodules' + - script: | where python3 where python python --version @@ -253,16 +260,13 @@ jobs: wmic VOLUME list set displayName: 'System properties' + - powershell: Invoke-RestMethod -Headers @{"Metadata"="true"} -URI http://169.254.169.254/metadata/instance?api-version=2017-08-01 -Method get | Format-Custom + displayName: Install monitoring - script: | certutil -urlcache -split -f https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip ninja-win.zip powershell -command "Expand-Archive -Force ninja-win.zip" displayName: Install Ninja - script: | - git clean -xdf - git reset --hard HEAD - git submodule update --init --recursive --jobs $(WORKERS_NUMBER) - displayName: 'Clone submodules' - - script: | rd /Q /S $(BUILD_DIR) mkdir $(BUILD_DIR)\bin rd /Q /S dldt-build