2018-02-14 23:02:01 +08:00
|
|
|
sudo: required
|
2016-10-15 02:44:31 +08:00
|
|
|
|
2018-01-18 09:18:47 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
###################
|
|
|
|
- language: cpp
|
2018-01-18 10:00:38 +08:00
|
|
|
compiler: clang
|
2018-01-18 09:18:47 +08:00
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- VARIANT=test
|
2019-03-19 10:32:50 +08:00
|
|
|
- DISABLED_TESTS=""
|
2018-01-18 09:18:47 +08:00
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
2018-01-18 09:03:17 +08:00
|
|
|
|
2018-01-18 10:13:01 +08:00
|
|
|
###################
|
|
|
|
- language: cpp
|
|
|
|
compiler: clang
|
|
|
|
os: linux
|
|
|
|
env:
|
2019-03-18 09:08:08 +08:00
|
|
|
- VARIANT=examples-debug
|
2018-01-18 10:13:01 +08:00
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-18 09:18:47 +08:00
|
|
|
###################
|
|
|
|
- language: cpp
|
2018-01-18 10:00:38 +08:00
|
|
|
compiler: gcc
|
|
|
|
os: linux
|
|
|
|
env:
|
2019-03-18 09:08:08 +08:00
|
|
|
- VARIANT=test-debug
|
2019-03-19 10:32:50 +08:00
|
|
|
- DISABLED_TESTS=""
|
2018-01-18 10:00:38 +08:00
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-28 20:59:40 +08:00
|
|
|
###################
|
|
|
|
- language: cpp
|
|
|
|
compiler: gcc
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- VARIANT=tools
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-03-30 19:25:59 +08:00
|
|
|
###################
|
|
|
|
- language: cpp
|
|
|
|
compiler: gcc
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- VARIANT=old-cmake
|
2018-03-30 19:55:55 +08:00
|
|
|
before_install:
|
|
|
|
- dlib/travis/get-old-cmakes.sh
|
2018-03-31 03:42:10 +08:00
|
|
|
cache:
|
|
|
|
- directories: cmake
|
2018-03-30 19:25:59 +08:00
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-28 20:59:40 +08:00
|
|
|
###################
|
|
|
|
- language: cpp
|
|
|
|
compiler: gcc
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- VARIANT=dlib_all_source_cpp
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-22 01:23:40 +08:00
|
|
|
########### test with C++17 ########
|
|
|
|
- language: cpp
|
2018-01-22 04:04:17 +08:00
|
|
|
compiler: gcc
|
2018-01-22 01:23:40 +08:00
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- VARIANT=test
|
2018-01-22 01:55:31 +08:00
|
|
|
- CXXFLAGS=-std=c++17
|
2018-01-22 04:04:17 +08:00
|
|
|
# Need to set MATRIX_EVAL to set CC and CXX env vars. You would
|
|
|
|
# think you could just set them in the env area like any other, but
|
|
|
|
# travis is wonky about CC and CXX vars so you have to do it this way.
|
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
2019-03-19 10:32:50 +08:00
|
|
|
- DISABLED_TESTS=""
|
2018-01-22 01:23:40 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-7
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-18 10:00:38 +08:00
|
|
|
###################
|
|
|
|
- language: cpp
|
|
|
|
compiler: gcc
|
2018-01-18 09:18:47 +08:00
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- VARIANT=examples
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
|
|
|
###################
|
|
|
|
- language: python
|
2019-02-20 21:30:38 +08:00
|
|
|
python: 2.7
|
2018-01-18 09:18:47 +08:00
|
|
|
env:
|
|
|
|
- VARIANT=python-api
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-18 10:00:38 +08:00
|
|
|
###################
|
|
|
|
- language: python
|
2019-02-20 21:30:38 +08:00
|
|
|
python: 3.5
|
2018-01-18 10:00:38 +08:00
|
|
|
env:
|
|
|
|
- VARIANT=python-api
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|
2018-01-18 09:18:47 +08:00
|
|
|
###################
|
2019-03-19 09:30:27 +08:00
|
|
|
- language: cpp
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.2
|
|
|
|
env:
|
|
|
|
- VARIANT=test
|
|
|
|
# Don't test the timer because it relies on the machine running it not
|
|
|
|
# being under high load, but that seems to be unlikely on the travis
|
|
|
|
# osx VMs.
|
|
|
|
- DISABLED_TESTS="--no_test_timer"
|
|
|
|
script:
|
|
|
|
- dlib/travis/build-and-test.sh
|
|
|
|
|