forked from davisking/dlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (76 loc) · 1.82 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
language: cpp
packages: &gcc5_pkgs
- gcc-5
- g++-5
- libstdc++6
matrix:
include:
# build and run all tests
- compiler: gcc
env:
- GCC_VER=5
- ADDRESS_MODEL=64
- BUILD_SYSTEM=cmake
- PATH=$HOME/bin:$PATH
- VARIANT=test
addons: &ao_gcc5
apt:
sources:
- ubuntu-toolchain-r-test
packages: *gcc5_pkgs
# build all examples
- compiler: gcc
env:
- GCC_VER=5
- ADDRESS_MODEL=64
- BUILD_SYSTEM=cmake
- PATH=$HOME/bin:$PATH
- VARIANT=examples
addons: *ao_gcc5
# build the python extension
- compiler: gcc
env:
- GCC_VER=5
- ADDRESS_MODEL=64
- BUILD_SYSTEM=cmake
- PATH=$HOME/bin:$PATH
- VARIANT=python-api
addons: &ao_gcc5
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- libboost-python1.55-dev
- *gcc5_pkgs
# build the python3 extension
- compiler: gcc
env:
- GCC_VER=5
- ADDRESS_MODEL=64
- BUILD_SYSTEM=cmake
- PATH=$HOME/bin:$PATH
- VARIANT=python3-api
addons: &ao_gcc5
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- libboost-python1.55-dev
- python3
- python3-pip
- *gcc5_pkgs
cache:
directories:
- cmake
before_install:
- dlib/travis/before-install.sh
install:
- if [ "$CXX" == "g++" ]; then export CXX=g++-$GCC_VER; export CC=gcc-$GCC_VER; fi
- if [ "$CXX" == "clang++" ]; then export CXX=clang++-$CLANG_VER; export CC=clang-$CLANG_VER; fi
script:
- dlib/travis/build-and-test.sh
#notifications:
# email:
# false