From 20add2c88edd7675963832dd85a03f41b40fe195 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 12 Jul 2022 19:01:46 -0400 Subject: [PATCH] removing travis configs since we haven't used travis in months --- .travis.yml | 90 ----------------------------------- dlib/travis/build-and-test.sh | 62 ------------------------ dlib/travis/get-old-cmakes.sh | 42 ---------------- 3 files changed, 194 deletions(-) delete mode 100644 .travis.yml delete mode 100755 dlib/travis/build-and-test.sh delete mode 100755 dlib/travis/get-old-cmakes.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2f7625f0e..000000000 --- a/.travis.yml +++ /dev/null @@ -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 - diff --git a/dlib/travis/build-and-test.sh b/dlib/travis/build-and-test.sh deleted file mode 100755 index b9ac3882d..000000000 --- a/dlib/travis/build-and-test.sh +++ /dev/null @@ -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 diff --git a/dlib/travis/get-old-cmakes.sh b/dlib/travis/get-old-cmakes.sh deleted file mode 100755 index d4429f672..000000000 --- a/dlib/travis/get-old-cmakes.sh +++ /dev/null @@ -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 -