forked from KhronosGroup/OpenVX-sample-impl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (93 loc) · 4.65 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
language: c
sudo: false
dist: xenial
os:
- linux
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
branches:
- openvx_1.3
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive --remote
script:
- python Build.py --os=Linux --conf=Release
- python Build.py --os=Linux --conf=Debug
- export OPENVX_DIR=$(pwd)/install/Linux/x64/Debug
- export VX_TEST_DATA_PATH=$(pwd)/cts/test_data/
# Travis Mode -- OpenVX Conformance for Vision, Enhanced Vision, & Neural Net [Can not run CI longer than 30 min on Travis Open Source Version]
- mkdir build-cts-travis-mode
- rm -rf install/Linux/x64/Debug
- python Build.py --os=Linux --arch=64 --conf=Debug --conf_vision --enh_vision --conf_nn --c_flags="-fprofile-arcs -ftest-coverage" --cpp_flags="-fprofile-arcs -ftest-coverage"
- cd build-cts-travis-mode
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON ../cts/
- cmake --build .
- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance
- cd ../
# Mode:1 -- OpenVX Conformance for Vision
- export OPENVX_DIR=$(pwd)/install/Linux/x64/Release
- mkdir build-cts-mode-1
- rm -rf install/Linux/x64/Release
- python Build.py --os=Linux --arch=64 --conf=Release --conf_vision
- cd build-cts-mode-1
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON ../cts/
- cmake --build .
#- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance [RUN Disabled]
- cd ../
# Mode:2 -- OpenVX Conformance for Vision & Enhanced Vision
- mkdir build-cts-mode-2
- rm -rf install/Linux/x64/Release
- python Build.py --os=Linux --arch=64 --conf=Release --conf_vision --enh_vision
- cd build-cts-mode-2
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON ../cts/
- cmake --build .
#- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance [RUN Disabled]
- cd ../
# Mode:3 -- OpenVX Conformance for Neural Net
- mkdir build-cts-mode-3
- rm -rf install/Linux/x64/Release
- python Build.py --os=Linux --arch=64 --conf=Release --conf_nn
- cd build-cts-mode-3
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON ../cts/
- cmake --build .
#- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance [RUN Disabled]
- cd ../
# Mode:4 -- OpenVX Conformance for NNEF Import
- mkdir build-cts-mode-4
- rm -rf install/Linux/x64/Release
- python Build.py --os=Linux --arch=64 --conf=Release --conf_nnef
- cd build-cts-mode-4
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;$OPENVX_DIR/bin/libnnef-lib.a\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_NNEF_IMPORT=ON ../cts/
- cmake --build .
- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance --filter=*TensorNNEF*
- cd ../
# Mode:5 -- OpenVX Conformance for Vision, Enhanced Vision, Neural Net, TBD:(NNEF Import), Import/Export, TBD:(NN_16, & Binary)
- mkdir build-cts-mode-5
- rm -rf install/Linux/x64/Release
- python Build.py --os=Linux --arch=64 --conf=Release --conf_vision --enh_vision --conf_nn --nn --ix
- cd build-cts-mode-5
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON -DOPENVX_USE_NN=ON -DOPENVX_USE_IX=ON ../cts/
- cmake --build .
#- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance [RUN Disabled]
- cd ../
# Mode:6 -- OpenVX Conformance for Vision, Enhanced Vision, Pipelining, & Streaming
- mkdir build-cts-mode-6
- rm -rf install/Linux/x64/Release
- python Build.py --os=Linux --arch=64 --conf=Release --conf_vision --enh_vision --pipelining --streaming
# -- TBD: Run CTS --
after_success:
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) || echo "codecov did not collect coverage reports"
notifications:
email: