forked from Tencent/ncnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (62 loc) · 2.89 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
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 .. && 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 .. && 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 .. && 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 .. && 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 - .. && 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 - .. && 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}"