mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
removing travis configs since we haven't used travis in months
This commit is contained in:
parent
1066be80fd
commit
20add2c88e
90
.travis.yml
90
.travis.yml
@ -1,90 +0,0 @@
|
||||
sudo: required
|
||||
|
||||
matrix:
|
||||
include:
|
||||
###################
|
||||
- language: cpp
|
||||
compiler: clang
|
||||
os: linux
|
||||
env:
|
||||
- VARIANT=test
|
||||
- DISABLED_TESTS=""
|
||||
script:
|
||||
- dlib/travis/build-and-test.sh
|
||||
|
||||
###################
|
||||
- language: cpp
|
||||
compiler: gcc
|
||||
os: linux
|
||||
env:
|
||||
- VARIANT=test-debug
|
||||
- DISABLED_TESTS=""
|
||||
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
|
||||
|
||||
########### test with C++17 ########
|
||||
- language: cpp
|
||||
compiler: gcc
|
||||
os: linux
|
||||
env:
|
||||
- VARIANT=test
|
||||
- CXXFLAGS=-std=c++17
|
||||
# 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"
|
||||
- DISABLED_TESTS=""
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-7
|
||||
script:
|
||||
- dlib/travis/build-and-test.sh
|
||||
|
||||
###################
|
||||
# Disabled to avoid spending too many travis-ci credits each month.
|
||||
#- language: python
|
||||
# python: 3.5
|
||||
# env:
|
||||
# - VARIANT=python-api
|
||||
# script:
|
||||
# - dlib/travis/build-and-test.sh
|
||||
|
||||
###################
|
||||
- language: python
|
||||
python: 3.8
|
||||
env:
|
||||
- VARIANT=python-api
|
||||
script:
|
||||
- dlib/travis/build-and-test.sh
|
||||
|
||||
###################
|
||||
# Disabled to avoid spending too many travis-ci credits each month. They
|
||||
# also charge 5x as many credits for osx as linux.
|
||||
#- 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
|
||||
|
@ -1,62 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Exit if anything fails.
|
||||
set -eux
|
||||
|
||||
# execute the contents of MATRIX_EVAL if it's set
|
||||
if [ -n "${MATRIX_EVAL+set}" ]; then
|
||||
eval "${MATRIX_EVAL}"
|
||||
fi
|
||||
|
||||
CXX_FLAGS="-std=c++11"
|
||||
if [ ! -z ${CXXFLAGS+set} ]; then
|
||||
CXX_FLAGS="${CXXFLAGS}"
|
||||
fi
|
||||
|
||||
# build dlib and tests
|
||||
if [ "$VARIANT" = "test" ]; then
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../dlib/test -DCMAKE_CXX_FLAGS="${CXX_FLAGS}"
|
||||
cmake --build . --target dtest -- -j 2
|
||||
./dtest --runall $DISABLED_TESTS
|
||||
fi
|
||||
|
||||
# build dlib and tests
|
||||
if [ "$VARIANT" = "test-debug" ]; then
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../dlib/test -DDLIB_ENABLE_ASSERTS=1 -DCMAKE_CXX_FLAGS="${CXX_FLAGS}"
|
||||
cmake --build . --target dtest -- -j 2
|
||||
./dtest --runall $DISABLED_TESTS
|
||||
fi
|
||||
|
||||
# The point of this test is just to make sure the cmake scripts work with the
|
||||
# oldest version of cmake we are supposed to support.
|
||||
if [ "$VARIANT" = "old-cmake" ]; then
|
||||
mkdir build
|
||||
cd build
|
||||
CMAKEDIR=../cmake
|
||||
|
||||
$CMAKEDIR/2.8/bin/cmake ../dlib/test/tools
|
||||
$CMAKEDIR/2.8/bin/cmake --build . -- -j 2
|
||||
|
||||
rm -rf *
|
||||
$CMAKEDIR/3.1/bin/cmake ../dlib/test/tools
|
||||
$CMAKEDIR/3.1/bin/cmake --build . -- -j 2
|
||||
|
||||
rm -rf *
|
||||
$CMAKEDIR/3.5/bin/cmake ../dlib/test/tools
|
||||
$CMAKEDIR/3.5/bin/cmake --build . -- -j 2
|
||||
|
||||
|
||||
# just to make sure there isn't anything funny about building standalone dlib
|
||||
rm -rf *
|
||||
$CMAKEDIR/2.8/bin/cmake ../dlib
|
||||
$CMAKEDIR/2.8/bin/cmake --build . -- -j 2
|
||||
fi
|
||||
|
||||
if [ "$VARIANT" = "python-api" ]; then
|
||||
python setup.py test --clean
|
||||
pip uninstall numpy -y
|
||||
python setup.py test --clean
|
||||
fi
|
@ -1,42 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
|
||||
|
||||
# Make sure the binaries are there, if not then delete the directory and redownload
|
||||
./cmake/2.8/bin/cmake --version || rm -rf cmake
|
||||
./cmake/3.1/bin/cmake --version || rm -rf cmake
|
||||
./cmake/3.5/bin/cmake --version || rm -rf cmake
|
||||
|
||||
|
||||
# Exit if anything fails.
|
||||
set -eux
|
||||
|
||||
if [[ ! -d cmake ]]; then
|
||||
echo "Downloading cmake..."
|
||||
|
||||
# Travis requires 64bit binaries but they aren't available for this version of cmake, so we build from source
|
||||
CMAKE_URL="https://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz"
|
||||
mkdir -p cmake/2.8
|
||||
wget --no-check-certificate -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake/2.8
|
||||
pushd cmake/2.8
|
||||
./configure
|
||||
make -j2
|
||||
popd
|
||||
|
||||
CMAKE_URL="http://www.cmake.org/files/v3.1/cmake-3.1.2-Linux-x86_64.tar.gz"
|
||||
mkdir -p cmake/3.1
|
||||
wget --no-check-certificate -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake/3.1
|
||||
|
||||
CMAKE_URL="http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz"
|
||||
mkdir -p cmake/3.5
|
||||
wget --no-check-certificate -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake/3.5
|
||||
|
||||
fi
|
||||
|
||||
|
||||
#make sure the binaries are really there
|
||||
./cmake/2.8/bin/cmake --version
|
||||
./cmake/3.1/bin/cmake --version
|
||||
./cmake/3.5/bin/cmake --version
|
||||
|
Loading…
Reference in New Issue
Block a user