-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (45 loc) · 1.13 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
language: cpp
compiler:
- clang
- gcc
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.9
- clang
- valgrind
before_install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9"; fi
# Build OpenCV
- git clone https://github.com/Itseez/opencv.git
- cd opencv
- mkdir build
- cd build
- cmake -DBUILD_EXAMPLES=Off -DBUILD_DOCS=Off -DBUILD_opencv_java=Off -DBUILD_TESTS=Off -DBUILD_PERF_TESTS=Off -DWITH_OPENXR=Off -DWITH_CUDA=Off ..
- make
- sudo make install
- cd ../..
install:
- mkdir build
- cd build
- cmake -DCVX_BUILD_EXAMPLES=On -DCVX_BUILD_TESTS=On -DCVX_STATIC_LIBRARY=On -DCVX_SHARED_LIBRARY=On ..
- make
script:
- cmake --version
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --version; fi
after_success:
- make test
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ../tests/valgrind_tests.sh; fi
notifications:
on_success: change
on_failure: always
branches:
only:
- master
- fix_array_view_pitch