forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
316 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,101 @@ | ||
resources: | ||
repositories: | ||
- repository: openvino | ||
type: github | ||
endpoint: openvinotoolkit | ||
name: openvinotoolkit/openvino | ||
|
||
jobs: | ||
- job: Lin | ||
# About 150% of total time | ||
timeoutInMinutes: 60 | ||
|
||
pool: | ||
name: LIN_VMSS_VENV_F8S_WU2 | ||
|
||
variables: | ||
system.debug: true | ||
VSTS_HTTP_RETRY: 5 | ||
VSTS_HTTP_TIMEOUT: 200 | ||
WORKERS_NUMBER: 8 | ||
BUILD_TYPE: Release | ||
REPO_DIR: $(Build.Repository.LocalPath) | ||
OPENVINO_REPO_DIR: $(REPO_DIR)/../openvino | ||
WORK_DIR: $(Pipeline.Workspace)/_w | ||
BUILD_DIR: $(WORK_DIR)/build | ||
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE) | ||
|
||
steps: | ||
- script: | | ||
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01" | ||
whoami | ||
uname -a | ||
which python3 | ||
python3 --version | ||
which java | ||
java -version | ||
gcc --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" | ||
displayName: 'System info' | ||
- script: | | ||
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR) | ||
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR) | ||
displayName: 'Make dir' | ||
- checkout: self | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino_contrib | ||
|
||
- checkout: openvino | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino | ||
|
||
- script: | | ||
sudo apt --assume-yes install libusb-1.0-0-dev | ||
# Speed up build | ||
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip | ||
unzip ninja-linux.zip | ||
sudo cp -v ninja /usr/local/bin/ | ||
workingDirectory: $(WORK_DIR) | ||
displayName: 'Install dependencies' | ||
- task: CMake@1 | ||
inputs: | ||
cmakeArgs: -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_JAVA=OFF -DIE_EXTRA_MODULES=$(REPO_DIR)/modules $(OPENVINO_REPO_DIR) | ||
workingDirectory: $(BUILD_DIR) | ||
|
||
- script: ninja | ||
workingDirectory: $(BUILD_DIR) | ||
displayName: 'Build Lin' | ||
|
||
- script: ls -alR $(OPENVINO_REPO_DIR)/bin/ | ||
displayName: 'List files' | ||
resources: | ||
repositories: | ||
- repository: openvino | ||
type: github | ||
endpoint: openvinotoolkit | ||
name: openvinotoolkit/openvino | ||
|
||
- repository: testdata | ||
type: github | ||
endpoint: openvinotoolkit | ||
name: openvinotoolkit/testdata | ||
|
||
jobs: | ||
- job: Lin | ||
# About 150% of total time | ||
timeoutInMinutes: 60 | ||
|
||
pool: | ||
name: LIN_VMSS_VENV_F8S_WU2 | ||
|
||
variables: | ||
system.debug: true | ||
VSTS_HTTP_RETRY: 5 | ||
VSTS_HTTP_TIMEOUT: 200 | ||
WORKERS_NUMBER: 8 | ||
BUILD_TYPE: Release | ||
REPO_DIR: $(Build.Repository.LocalPath) | ||
OPENVINO_REPO_DIR: $(REPO_DIR)/../openvino | ||
MODELS_PATH: $(REPO_DIR)/../testdata | ||
WORK_DIR: $(Pipeline.Workspace)/_w | ||
BUILD_DIR: $(WORK_DIR)/build | ||
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE) | ||
|
||
steps: | ||
- script: | | ||
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01" | ||
whoami | ||
uname -a | ||
which python3 | ||
python3 --version | ||
which java | ||
java -version | ||
gcc --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" | ||
displayName: 'System info' | ||
- script: | | ||
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR) | ||
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR) | ||
displayName: 'Make dir' | ||
- checkout: self | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino_contrib | ||
|
||
- checkout: openvino | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino | ||
|
||
- checkout: testdata | ||
clean: true | ||
lfs: true | ||
path: testdata | ||
|
||
- script: | | ||
sudo apt --assume-yes install libusb-1.0-0-dev | ||
# Speed up build | ||
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip | ||
unzip ninja-linux.zip | ||
sudo cp -v ninja /usr/local/bin/ | ||
workingDirectory: $(WORK_DIR) | ||
displayName: 'Install dependencies' | ||
- task: CMake@1 | ||
inputs: | ||
cmakeArgs: -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_JAVA=OFF -DENABLE_TESTS=ON -DIE_EXTRA_MODULES=$(REPO_DIR)/modules $(OPENVINO_REPO_DIR) | ||
workingDirectory: $(BUILD_DIR) | ||
|
||
- script: ninja | ||
workingDirectory: $(BUILD_DIR) | ||
displayName: 'Build Lin' | ||
|
||
- script: ls -alR $(OPENVINO_REPO_DIR)/bin/ | ||
displayName: 'List files' | ||
|
||
- script: java -cp "*" OpenVinoTestRunner | ||
workingDirectory: $(BIN_DIR)/lib | ||
env: | ||
LD_LIBRARY_PATH: $(BIN_DIR)/lib | ||
displayName: 'Java tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,101 @@ | ||
resources: | ||
repositories: | ||
- repository: openvino | ||
type: github | ||
endpoint: openvinotoolkit | ||
name: openvinotoolkit/openvino | ||
|
||
jobs: | ||
- job: Mac | ||
# About 200% of total time (perfomace of Mac hosts is unstable) | ||
timeoutInMinutes: 120 | ||
|
||
pool: | ||
vmImage: 'macOS-10.15' | ||
|
||
variables: | ||
system.debug: true | ||
VSTS_HTTP_RETRY: 5 | ||
VSTS_HTTP_TIMEOUT: 200 | ||
WORKERS_NUMBER: 3 | ||
BUILD_TYPE: Release | ||
REPO_DIR: $(Build.Repository.LocalPath) | ||
OPENVINO_REPO_DIR: $(REPO_DIR)/../openvino | ||
WORK_DIR: $(Pipeline.Workspace)/_w | ||
BUILD_DIR: $(WORK_DIR)/build | ||
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE) | ||
|
||
steps: | ||
- script: | | ||
whoami | ||
uname -a | ||
which python3 | ||
python3 --version | ||
which java | ||
java -version | ||
gcc --version | ||
xcrun --sdk macosx --show-sdk-version | ||
env | ||
sysctl -a | ||
displayName: 'System info' | ||
- script: | | ||
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR) | ||
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR) | ||
displayName: 'Make dir' | ||
- checkout: self | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino_contrib | ||
|
||
- checkout: openvino | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino | ||
|
||
- script: | | ||
brew install cython | ||
brew install automake | ||
# Speed up build | ||
brew install ninja | ||
workingDirectory: $(WORK_DIR) | ||
displayName: 'Install dependencies' | ||
- script: | | ||
export PATH="/usr/local/opt/cython/bin:$PATH" | ||
export CC=gcc | ||
export CXX=g++ | ||
# Disable errors with Ninja | ||
export CXXFLAGS="-Wno-error=unused-command-line-argument" | ||
export CFLAGS="-Wno-error=unused-command-line-argument" | ||
cmake -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_JAVA=OFF -DIE_EXTRA_MODULES=$(REPO_DIR)/modules $(OPENVINO_REPO_DIR) | ||
workingDirectory: $(BUILD_DIR) | ||
displayName: 'CMake' | ||
- script: ninja | ||
workingDirectory: $(BUILD_DIR) | ||
displayName: 'Build Mac' | ||
|
||
- script: ls -alR $(OPENVINO_REPO_DIR)/bin/ | ||
displayName: 'List files' | ||
resources: | ||
repositories: | ||
- repository: openvino | ||
type: github | ||
endpoint: openvinotoolkit | ||
name: openvinotoolkit/openvino | ||
|
||
- repository: testdata | ||
type: github | ||
endpoint: openvinotoolkit | ||
name: openvinotoolkit/testdata | ||
|
||
jobs: | ||
- job: Mac | ||
# About 200% of total time (perfomace of Mac hosts is unstable) | ||
timeoutInMinutes: 120 | ||
|
||
pool: | ||
vmImage: 'macOS-10.15' | ||
|
||
variables: | ||
system.debug: true | ||
VSTS_HTTP_RETRY: 5 | ||
VSTS_HTTP_TIMEOUT: 200 | ||
WORKERS_NUMBER: 3 | ||
BUILD_TYPE: Release | ||
REPO_DIR: $(Build.Repository.LocalPath) | ||
OPENVINO_REPO_DIR: $(REPO_DIR)/../openvino | ||
MODELS_PATH: $(REPO_DIR)/../testdata | ||
WORK_DIR: $(Pipeline.Workspace)/_w | ||
BUILD_DIR: $(WORK_DIR)/build | ||
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE) | ||
|
||
steps: | ||
- script: | | ||
whoami | ||
uname -a | ||
which python3 | ||
python3 --version | ||
which java | ||
java -version | ||
gcc --version | ||
xcrun --sdk macosx --show-sdk-version | ||
env | ||
sysctl -a | ||
displayName: 'System info' | ||
- script: | | ||
rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR) | ||
rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR) | ||
displayName: 'Make dir' | ||
- checkout: self | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino_contrib | ||
|
||
- checkout: openvino | ||
clean: true | ||
lfs: false | ||
submodules: recursive | ||
path: openvino | ||
|
||
- checkout: testdata | ||
clean: true | ||
lfs: true | ||
path: testdata | ||
|
||
- script: | | ||
brew install cython | ||
brew install automake | ||
# Speed up build | ||
brew install ninja | ||
workingDirectory: $(WORK_DIR) | ||
displayName: 'Install dependencies' | ||
- script: | | ||
export PATH="/usr/local/opt/cython/bin:$PATH" | ||
export CC=gcc | ||
export CXX=g++ | ||
# Disable errors with Ninja | ||
export CXXFLAGS="-Wno-error=unused-command-line-argument" | ||
export CFLAGS="-Wno-error=unused-command-line-argument" | ||
cmake -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_JAVA=OFF -DENABLE_TESTS=ON -DIE_EXTRA_MODULES=$(REPO_DIR)/modules $(OPENVINO_REPO_DIR) | ||
workingDirectory: $(BUILD_DIR) | ||
displayName: 'CMake' | ||
- script: ninja | ||
workingDirectory: $(BUILD_DIR) | ||
displayName: 'Build Mac' | ||
|
||
- script: ls -alR $(OPENVINO_REPO_DIR)/bin/ | ||
displayName: 'List files' | ||
|
||
- script: java -cp "*" OpenVinoTestRunner | ||
workingDirectory: $(BIN_DIR)/lib | ||
env: | ||
LD_LIBRARY_PATH: $(BIN_DIR)/lib | ||
displayName: 'Java tests' |
Oops, something went wrong.