代码拉取完成,页面将自动刷新
sudo: false
language: cpp
addons:
apt:
packages:
- cmake
- libprotobuf-dev
- protobuf-compiler
- libopencv-dev
- lcov
matrix:
include:
- name: "linux-gcc-arm64"
os: linux
arch: arm64
dist: bionic
compiler: gcc
env:
- NAME=linux-gcc
- BUILD="mkdir build && cd build && cmake -DNCNN_BUILD_TESTS=ON .. && make -j2 && ctest --output-on-failure -j 2"
- name: "linux-clang-arm64"
os: linux
arch: arm64
dist: bionic
compiler: clang
env:
- NAME=linux-clang
- BUILD="mkdir build && cd build && cmake -DNCNN_BUILD_TESTS=ON .. && make -j2 && ctest --output-on-failure -j 2"
- name: "windows-vs2017"
os: windows
dist: 1803-containers
env:
- NAME=windows-vs2017
- BUILD="mkdir build && cd build && cmake -DNCNN_BUILD_TESTS=ON .. && cmake --build . --config Release && ctest -C Release --output-on-failure -j 2"
- name: "test-coverage-arm64"
os: linux
arch: arm64
dist: bionic
compiler: gcc
env:
- NAME=test-coverage-arm64
- BUILD="mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=debug -DNCNN_COVERAGE=ON -DNCNN_OPENMP=OFF -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON .. && make -j2 && ctest --output-on-failure -j 2 && lcov -d ./src -c -o lcov.info && lcov -r lcov.info '/usr/*' -o lcov.info && lcov --list lcov.info && bash <(curl -s https://codecov.io/bash) -f lcov.info"
- name: "linux-gcc-arm32"
os: linux
arch: arm64
dist: bionic
env:
- NAME=linux-gcc-arm32
- BEFORE_BUILD="sudo apt-get update && sudo dpkg --add-architecture armhf && sudo rm /etc/apt/sources.list.d/mongodb*.list && sudo apt-get update && sudo apt-get -y install crossbuild-essential-armhf libc6:armhf libstdc++-5-dev:armhf linux-libc-dev:armhf"
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/arm-linux-gnueabihf.toolchain.cmake -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF - -DNCNN_BUILD_TESTS=ON .. && make -j2 VERBOSE=1 && ctest --output-on-failure -j 2"
- name: "test-coverage-arm32"
os: linux
arch: arm64
dist: bionic
env:
- NAME=test-coverage-arm32
- BEFORE_BUILD="sudo apt-get update && sudo dpkg --add-architecture armhf && sudo rm /etc/apt/sources.list.d/mongodb*.list && sudo apt-get update && sudo apt-get -y install crossbuild-essential-armhf libc6:armhf libstdc++-5-dev:armhf linux-libc-dev:armhf"
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/arm-linux-gnueabihf.toolchain.cmake -DCMAKE_BUILD_TYPE=debug -DNCNN_COVERAGE=ON -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF - -DNCNN_BUILD_TESTS=ON .. && make -j2 && ctest --output-on-failure -j 2 && lcov -d ./src -c -o lcov.info && lcov -r lcov.info '/usr/*' -o lcov.info && lcov --list lcov.info && bash <(curl -s https://codecov.io/bash) -f lcov.info"
before_install:
- eval "${BEFORE_BUILD}"
script:
- eval "${BUILD}"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。