forked from OAID/Tengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1.23 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
sudo: false
language: cpp
addons:
apt:
packages:
- cmake
- libopencv-dev
matrix:
include:
- name: "linux-gcc"
os: linux
dist: xenial
compiler: gcc
env:
- NAME=linux-gcc
- BUILD="mkdir build && cd build && cmake .. && make -j2"
- TEST="ctest --output-on-failure -j 2"
- name: "linux-gcc-arm32"
os: linux
arch: arm64
dist: bionic
env:
- NAME=linux-gcc-arm32
- BEFORE_BUILD="sudo apt update && sudo dpkg --add-architecture armhf && sudo apt update && sudo apt -y install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf && sudo apt -y install libc6:armhf libncurses5:armhf libstdc++6:armhf libgomp1:armhf"
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/arm-linux-gnueabihf.toolchain.cmake .. && make -j2"
- TEST="ctest --output-on-failure -j 2"
- name: "linux-gcc-arm64"
os: linux
arch: arm64
dist: bionic
compiler: gcc
env:
- NAME=linux-gcc-arm64
- BUILD="mkdir build && cd build && cmake .. && make -j2"
- TEST="ctest --output-on-failure -j 2"
before_install:
- eval "${BEFORE_BUILD}"
script:
- eval "${BUILD}"
- eval "${TEST}"