forked from tiny-dnn/tiny-dnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
113 lines (99 loc) · 2.5 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
sudo: required
dist: trusty
osx_image: xcode8
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
cache:
pip: true
directories:
- $HOME/.pip-cache/
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- gcc-4.9
- g++-4.9
- clang-3.6
- cmake
- git
# Optional dependencies
- libtbb-dev
# coveralls dependencies
- gem
- lcov
# caffe-importer dependencies
- libprotobuf-dev
- protobuf-compiler
branches:
only:
- master
#- feat/xtensor_integration
#- feat/decouple_activations
env:
global:
- USE_TBB=ON
- BUILD_TESTS=ON
- BUILD_EXAMPLES=ON
- COVERALLS=ON
matrix:
- USE_SSE=OFF USE_AVX=OFF USE_DOUBLE=OFF
- USE_SSE=ON USE_AVX=ON USE_DOUBLE=OFF
- USE_SSE=ON USE_AVX=ON USE_DOUBLE=ON
matrix:
exclude: # On OSX g++ is a symlink to clang++ by default
- os: osx
compiler: gcc
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "g++" ]; then
export CC="gcc-4.9";
export CXX="g++-4.9";
fi
- gcc --version
- g++ --version
install:
- bash -x .travis/install.sh
- gem install coveralls-lcov
- pip install --user cpplint
before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "g++-4.9" ]; then
lcov --directory . --zerocounters;
cmake -DUSE_TBB=$USE_TBB
-DUSE_SSE=$USE_SSE
-DUSE_AVX=$USE_AVX
-DUSE_DOUBLE=$USE_DOUBLE
-DBUILD_TESTS=$BUILD_TESTS
-DCOVERALLS=$COVERALLS
-DUSE_ASAN=ON
-DBUILD_EXAMPLES=$BUILD_EXAMPLES .;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "clang++" ]; then
cmake -DUSE_SSE=$USE_SSE
-DUSE_AVX=$USE_AVX
-DBUILD_TESTS=$BUILD_TESTS
-DBUILD_EXAMPLES=$BUILD_EXAMPLES .;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
cmake -DUSE_TBB=$USE_TBB
-DUSE_AVX=OFF
-DBUILD_TESTS=$BUILD_TESTS .;
fi
#- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# make test_lints;
# fi
script:
- make -j2
- test/tiny_dnn_test
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "g++-4.9" ]; then
lcov --directory . --capture --output-file coverage.info;
lcov --remove coverage.info 'test/*' 'third_party/*' 'cereal/*' '/usr/*' 'tiny_dnn/io/caffe/caffe.pb.*' --output-file coverage.info;
lcov --list coverage.info;
coveralls-lcov --source-encoding=ISO-8859-1 coverage.info;
fi