* Moved openvino to src * Moved ngraph and frontends to src * Fixed cmake generation * Moved inference_engine libs to src * Moved C API to src * Fixed CMake generation * Moved readers to tests, snippets and preprocessing to common * Fixed CMake * Moved transformations and lp_transformations * Fixed transformations cmake * Fixed build * Fixed unit-tests and ci paths * Fixed docs * Fixed C API build * Try to fix static build * More clear order * Renamed inference_engine_legacy_api to legacy * Fixed some cmake scripts * Fixed path to legacy * Fixed Myriad plugin * Fixed v7 reader * Fixed plugin.hpp * Fixed developer config * Fixed ie_parallel
178 lines
5.7 KiB
YAML
178 lines
5.7 KiB
YAML
resources:
|
|
repositories:
|
|
- repository: openvino_contrib
|
|
type: github
|
|
endpoint: openvinotoolkit
|
|
name: openvinotoolkit/openvino_contrib
|
|
|
|
- repository: testdata
|
|
type: github
|
|
endpoint: openvinotoolkit
|
|
name: openvinotoolkit/testdata
|
|
|
|
jobs:
|
|
- job: Lin_lohika
|
|
# About 150% of total time
|
|
timeoutInMinutes: 90
|
|
|
|
pool:
|
|
name: LIN_LOHIKA
|
|
|
|
variables:
|
|
system.debug: true
|
|
VSTS_HTTP_RETRY: 5
|
|
VSTS_HTTP_TIMEOUT: 200
|
|
BUILD_TYPE: Release
|
|
REPO_DIR: $(Build.Repository.LocalPath)
|
|
OPENVINO_CONTRIB_REPO_DIR: $(REPO_DIR)/../openvino_contrib
|
|
MODELS_PATH: $(REPO_DIR)/../testdata
|
|
WORK_DIR: $(Pipeline.Workspace)/_w
|
|
BUILD_DIR: $(WORK_DIR)/build
|
|
BUILD_SAMPLES_DIR: $(WORK_DIR)/build_samples
|
|
BUILD_LAYER_TESTS_DIR: $(WORK_DIR)/build_layer_tests
|
|
INSTALL_DIR: $(WORK_DIR)/install_pkg
|
|
INSTALL_TEST_DIR: $(INSTALL_DIR)/tests
|
|
LAYER_TESTS_DIR: $(INSTALL_TEST_DIR)/layer_tests
|
|
SETUPVARS: $(INSTALL_DIR)/setupvars.sh
|
|
|
|
steps:
|
|
- script: |
|
|
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
|
|
whoami
|
|
uname -a
|
|
echo Python3 info ; which python3 ; python3 --version
|
|
echo Python info ; which python ; python --version
|
|
echo Java info ; which java ; java -version
|
|
echo gcc info ; which gcc ; gcc --version
|
|
echo cmake info ; which cmake ; cmake --version
|
|
lsb_release
|
|
env
|
|
cat /proc/cpuinfo
|
|
cat /proc/meminfo
|
|
cat /etc/fstab
|
|
vmstat -s
|
|
df
|
|
lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"
|
|
free -h
|
|
displayName: 'System info'
|
|
|
|
- script: |
|
|
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR)
|
|
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR)
|
|
rm -rf $(BUILD_SAMPLES_DIR) ; mkdir $(BUILD_SAMPLES_DIR)
|
|
displayName: 'Make dir'
|
|
|
|
- checkout: self
|
|
clean: true
|
|
lfs: false
|
|
submodules: recursive
|
|
path: openvino
|
|
|
|
- checkout: openvino_contrib
|
|
clean: true
|
|
lfs: false
|
|
submodules: recursive
|
|
path: openvino_contrib
|
|
|
|
- script: |
|
|
set -e
|
|
$(REPO_DIR)/install_build_dependencies.sh
|
|
# Move jdk into contrib
|
|
sudo apt --assume-yes install openjdk-11-jdk
|
|
# For opencv-python: python3-setuptools and pip upgrade
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install -r $(REPO_DIR)/inference-engine/ie_bridges/python/requirements.txt
|
|
python3 -m pip install -r $(REPO_DIR)/inference-engine/ie_bridges/python/wheel/requirements-dev.txt
|
|
# For running Python API tests
|
|
python3 -m pip install -r $(REPO_DIR)/inference-engine/ie_bridges/python/src/requirements-dev.txt
|
|
# For running PaddlePaddle frontend unit tests
|
|
python3 -m pip install -r $(REPO_DIR)/src/core/tests/frontend/paddlepaddle/requirements_dev.txt
|
|
# For running ONNX frontend unit tests
|
|
python3 -m pip install -r $(REPO_DIR)/src/core/tests/requirements_test_onnx.txt
|
|
# For MO unit tests
|
|
python3 -m pip install -r $(REPO_DIR)/model-optimizer/requirements.txt
|
|
python3 -m pip install -r $(REPO_DIR)/model-optimizer/requirements_dev.txt
|
|
# Speed up build
|
|
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
|
|
unzip ninja-linux.zip
|
|
sudo cp -v ninja /usr/local/bin/
|
|
# Speed up tests
|
|
git clone https://github.com/google/gtest-parallel.git
|
|
workingDirectory: $(WORK_DIR)
|
|
displayName: 'Install dependencies'
|
|
|
|
# Should be after 'Install dependencies' because Git lfs is not installed
|
|
- checkout: testdata
|
|
clean: true
|
|
lfs: true
|
|
path: testdata
|
|
|
|
- task: CMake@1
|
|
inputs:
|
|
# CMake must get Python 3.x version by default
|
|
cmakeArgs: >
|
|
-GNinja
|
|
-DVERBOSE_BUILD=ON
|
|
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
|
|
-DENABLE_PYTHON=ON
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3.8
|
|
-DENABLE_WHEEL=ON
|
|
-DENABLE_TESTS=ON
|
|
-DNGRAPH_ONNX_FRONTEND_ENABLE=ON
|
|
-DENABLE_FASTER_BUILD=ON
|
|
-DENABLE_STRICT_DEPENDENCIES=OFF
|
|
-DENABLE_REQUIREMENTS_INSTALL=OFF
|
|
-DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
|
|
$(REPO_DIR)
|
|
workingDirectory: $(BUILD_DIR)
|
|
|
|
- script: ls -alR $(BUILD_DIR)/temp/
|
|
displayName: 'List temp SDKs'
|
|
|
|
- script: ninja
|
|
workingDirectory: $(BUILD_DIR)
|
|
displayName: 'Build Lin'
|
|
|
|
- script: ls -alR $(REPO_DIR)/bin/
|
|
displayName: 'List bin files'
|
|
|
|
- script: cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -P cmake_install.cmake
|
|
workingDirectory: $(BUILD_DIR)
|
|
displayName: 'Install'
|
|
|
|
- script: ls -alR $(INSTALL_DIR)
|
|
displayName: 'List install files'
|
|
|
|
- script: |
|
|
set -e
|
|
mkdir $(INSTALL_DIR)/opencv/
|
|
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake
|
|
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
|
|
workingDirectory: $(BUILD_DIR)
|
|
displayName: 'Install tests'
|
|
|
|
- script: ls -alR $(INSTALL_DIR)
|
|
displayName: 'List install files'
|
|
|
|
- script: rm -fr $(BUILD_DIR)
|
|
displayName: 'Clean build dir'
|
|
continueOnError: false
|
|
|
|
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU* --gtest_output=xml:TEST-NGraphUT.xml
|
|
workingDirectory: $(INSTALL_TEST_DIR)
|
|
displayName: 'nGraph UT'
|
|
continueOnError: false
|
|
|
|
- task: PublishTestResults@2
|
|
condition: always()
|
|
inputs:
|
|
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
|
|
testResultsFiles: '**/TEST-*.xml'
|
|
#searchFolder: '$(BUILD_DIR)'
|
|
mergeTestResults: false # Optional
|
|
#failTaskOnFailedTests: false # Optional
|
|
#testRunTitle: 'Pre/Post-Commit' # Optional
|
|
buildPlatform: 'x64' # Optional
|
|
buildConfiguration: 'Linux' # Optional
|
|
#publishRunAttachments: true # Optional
|