You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dlib/.travis.yml

124 lines
2.7 KiB

sudo: required
7 years ago
matrix:
include:
###################
- language: cpp
compiler: clang
7 years ago
os: linux
env:
- VARIANT=test
6 years ago
- DISABLED_TESTS=""
7 years ago
script:
- dlib/travis/build-and-test.sh
7 years ago
###################
- language: cpp
compiler: clang
os: linux
env:
- VARIANT=examples-debug
script:
- dlib/travis/build-and-test.sh
7 years ago
###################
- language: cpp
compiler: gcc
os: linux
env:
- VARIANT=test-debug
6 years ago
- DISABLED_TESTS=""
script:
- dlib/travis/build-and-test.sh
###################
- language: cpp
compiler: gcc
os: linux
env:
- VARIANT=tools
script:
- dlib/travis/build-and-test.sh
###################
- language: cpp
compiler: gcc
os: linux
env:
- VARIANT=old-cmake
before_install:
- dlib/travis/get-old-cmakes.sh
cache:
- directories: cmake
script:
- dlib/travis/build-and-test.sh
###################
- language: cpp
compiler: gcc
os: linux
env:
- VARIANT=dlib_all_source_cpp
script:
- dlib/travis/build-and-test.sh
########### test with C++17 ########
- language: cpp
7 years ago
compiler: gcc
os: linux
env:
- VARIANT=test
7 years ago
- CXXFLAGS=-std=c++17
7 years ago
# 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"
6 years ago
- DISABLED_TESTS=""
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
script:
- dlib/travis/build-and-test.sh
###################
- language: cpp
compiler: gcc
7 years ago
os: linux
env:
- VARIANT=examples
script:
- dlib/travis/build-and-test.sh
###################
- language: python
python: 2.7
7 years ago
env:
- VARIANT=python-api
script:
- dlib/travis/build-and-test.sh
###################
- language: python
python: 3.5
env:
- VARIANT=python-api
script:
- dlib/travis/build-and-test.sh
7 years ago
###################
- 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