forked from Tencent/ncnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (66 loc) · 2.26 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
sudo: false
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- libprotobuf-dev
- protobuf-compiler
homebrew:
packages:
- protobuf
chocolatey:
packages:
- protoc
matrix:
include:
- name: "linux-gcc"
os: linux
dist: xenial
compiler: gcc
env:
- BUILD="mkdir build && cd build && cmake .. && make -j2"
- name: "linux-clang"
os: linux
dist: xenial
compiler: clang
env:
- BUILD="mkdir build && cd build && cmake .. && make -j2"
- name: "osx-clang"
os: osx
osx_image: xcode9.4
env:
- BUILD="mkdir build && cd build && cmake .. && make -j2"
- name: "windows-vs2017"
os: windows
dist: 1803-containers
env:
- BUILD="mkdir build && cd build && cmake .. && cmake --build ."
- name: "android-armv7"
os: linux
dist: xenial
env:
- BEFORE_BUILD="wget https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip && unzip -q android-ndk-r18b-linux-x86_64.zip"
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=`pwd`/android-ndk-r18b/build/cmake/android.toolchain.cmake -DANDROID_ABI=\"armeabi-v7a\" -DANDROID_ARM_NEON=ON -DANDROID_PLATFORM=android-14 .. && make -j2"
- name: "android-aarch64"
os: linux
dist: xenial
env:
- BEFORE_BUILD="wget https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip && unzip -q android-ndk-r18b-linux-x86_64.zip"
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=`pwd`/android-ndk-r18b/build/cmake/android.toolchain.cmake -DANDROID_ABI=\"arm64-v8a\" -DANDROID_PLATFORM=android-21 .. && make -j2"
- name: "ios-iphoneos"
os: osx
osx_image: xcode9.4
env:
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/ios.toolchain.cmake -DIOS_PLATFORM=OS .. && make -j2"
- name: "ios-iphonesimulator"
os: osx
osx_image: xcode9.4
env:
- BUILD="mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/ios.toolchain.cmake -DIOS_PLATFORM=SIMULATOR .. && make -j2"
before_install:
- eval "${BEFORE_BUILD}"
script:
- eval "${BUILD}"