-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
82 lines (78 loc) · 3.81 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
dist: trusty
sudo: required
language: cpp
services:
- docker
addons:
env:
global:
- PROTOBUF_VERSION: 3.6.1
- MKLDNN_VERSION: 0.16
- MAKE_JOBS: 2
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "q1I4YsB5VcNaF9Unmm6T92ht9/KwOGbxZVCpXIp5XUVulpaZq7sTd3rL1v3r1mUCYaabkcy9N4UPQjJZsuOlU4jc8zPzPxPir7hOER5umlkfSMuc1RhmShT8cK9naznqv7FLSTIjTZIao85Lrgxgw0B6xzcWc0kSeJPJVAmS5kwmC/FCQS2MPQpyhfE5JjpUrePOT+lRTB6Psm5bWyEww8bPsatO2k5b8DDdmUJIxmuJ1UTCx5rj/ZcTJLWAsj8D7u9aUfCmOhV5+hqHBvJd/06FLt254SNmvzmVLW9CVU/aZvuTtRECgBYCVndR7NxWpRHo1SBKqgLu+cNOFoFyt++1V+FAbpxj9JMktZNyxWp22c/FvBBdHynOsxBxVFdGIzhcwhQMiHFLOK3pnyiByabtINhERqrszkbpztOepBE3o8PGpjOz8iIx1TtLgmWwAw5D6WXx8FeP5FMkJwpXckCMI5tX5wPoU8cpZIwPjCxG3Z+ojHw+80pQWCrMZnEDfcf9zskJNsmv/GbiWGEvI8xVG0gst5VmjaAXK7JhC0cKvPOEmCFRGY+BWdjD3dkYIIElUmBRfTRDpcDJV6j5r1xMv7QKRFDfAjnC33KLJo2aALZTrkRPveIP2h2jU13ZbemN8GKWwEWNzidmwtCbH4rpe80rFqASWkyfii7HrEI="
cache:
directories:
- ${HOME}/downloads
- ${HOME}/build/protobuf-${PROTOBUF_VERSION}
- ${HOME}/build/mkl-dnn-${MKLDNN_VERSION}
matrix:
include:
- os: osx
osx_image: xcode10.2
env: PLATFORM=macosx-x86_64
- os: osx
osx_image: xcode10.2
env: PLATFORM=macosx-x86_64 LINK_STATIC=true
- os: osx
osx_image: xcode10.2
env: PLATFORM=macosx-x86_64 BUILD_STATIC_LIBS=true
- os: linux
env: PLATFORM=linux-x86_64 BUILDENV_IMAGE=okapies/buildenv:linux-x64-devtoolset-6
- os: linux
env: PLATFORM=linux-x86_64 BUILDENV_IMAGE=okapies/buildenv:linux-x64-devtoolset-6 LINK_STATIC=true
- os: linux
env: PLATFORM=linux-x86_64 BUILDENV_IMAGE=okapies/buildenv:linux-x64-devtoolset-6 BUILD_STATIC_LIBS=true
# Use Travis directly instead of container to run static code analysis using Coverity
- if: branch = coverity_scan
os: linux
env: RUN_COVERITY=true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:maarten-fonville/protobuf'
packages:
- gcc-7
- g++-7
- cmake-data
- cmake
- libopencv-dev
- libprotobuf-dev
- protobuf-compiler
coverity_scan:
project:
name: "pfnet-research/menoh"
description: "Menoh: DNN inference library"
notification_email: menoh-oss@preferred.jp
build_command_prepend: >-
cov-configure --compiler g++-7 --comptype g++ --template &&
cmake -DMKLDNN_INCLUDE_DIR="$HOME/mkl-dnn-${MKLDNN_VERSION}/include" -DMKLDNN_LIBRARY="$HOME/mkl-dnn-${MKLDNN_VERSION}/lib/libmkldnn.so" .
build_command: make
branch_pattern: coverity_scan
install:
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CXX" = "g++" ]; then export CXX="g++-7" CC="gcc-7"; fi
- |
bash -ex ${TRAVIS_BUILD_DIR}/scripts/build-mkldnn.sh \
--version ${MKLDNN_VERSION} \
--download-dir ${HOME}/downloads \
--extract-dir ${HOME}/build \
--install-dir ${HOME}/mkl-dnn-${MKLDNN_VERSION} \
--parallel ${MAKE_JOBS}
- |
bash -ex ${TRAVIS_BUILD_DIR}/scripts/install-mkldnn.sh \
--build-dir ${HOME}/build/mkl-dnn-${MKLDNN_VERSION}/build
script: true # skip build and test
script:
- bash -ex ${TRAVIS_BUILD_DIR}/.travis/run-build.sh