Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
cd2c6e3a
Commit
cd2c6e3a
authored
Mar 30, 2018
by
Davis King
Browse files
Added travis tests to make sure we work with old versions of cmake.
parent
2fdc7310
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
1 deletion
+54
-1
.travis.yml
.travis.yml
+15
-1
dlib/travis/before-install.sh
dlib/travis/before-install.sh
+22
-0
dlib/travis/build-and-test.sh
dlib/travis/build-and-test.sh
+17
-0
No files found.
.travis.yml
View file @
cd2c6e3a
...
@@ -38,6 +38,15 @@ matrix:
...
@@ -38,6 +38,15 @@ matrix:
script
:
script
:
-
dlib/travis/build-and-test.sh
-
dlib/travis/build-and-test.sh
###################
-
language
:
cpp
compiler
:
gcc
os
:
linux
env
:
-
VARIANT=old-cmake
script
:
-
dlib/travis/build-and-test.sh
###################
###################
-
language
:
cpp
-
language
:
cpp
compiler
:
gcc
compiler
:
gcc
...
@@ -104,4 +113,9 @@ matrix:
...
@@ -104,4 +113,9 @@ matrix:
# - dlib/travis/build-and-test.sh
# - dlib/travis/build-and-test.sh
cache
:
directories
:
-
cmake
before_install
:
-
dlib/travis/before-install.sh
dlib/travis/before-install.sh
0 → 100755
View file @
cd2c6e3a
#!/usr/bin/env bash
# Exit if anything fails.
set
-eux
## download CMAKE to get colored output
if
[[
!
-x
cmake/3.5/bin/cmake
&&
-d
cmake
]]
;
then
rm
-rf
cmake
fi
if
[[
!
-d
cmake
]]
;
then
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
CMAKE_URL
=
"http://www.cmake.org/files/v2.8/cmake-2.8.12-Linux-i386.tar.gz"
mkdir
-p
cmake/2.8
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
cmake/2.8
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
fi
dlib/travis/build-and-test.sh
View file @
cd2c6e3a
...
@@ -30,6 +30,23 @@ if [ "$VARIANT" = "tools" ]; then
...
@@ -30,6 +30,23 @@ if [ "$VARIANT" = "tools" ]; then
cmake
--build
.
--
-j
2
cmake
--build
.
--
-j
2
fi
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
../cmake/2.8/bin/cmake ../dlib/test/tools
../cmake/2.8/bin/cmake
--build
.
--
-j
2
rm
-rf
*
../cmake/3.1/bin/cmake ../dlib/test/tools
../cmake/3.1/bin/cmake
--build
.
--
-j
2
rm
-rf
*
../cmake/3.5/bin/cmake ../dlib/test/tools
../cmake/3.5/bin/cmake
--build
.
--
-j
2
fi
if
[
"
$VARIANT
"
=
"examples"
]
;
then
if
[
"
$VARIANT
"
=
"examples"
]
;
then
mkdir
build
mkdir
build
cd
build
cd
build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment