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
d36c6619
Commit
d36c6619
authored
Mar 30, 2018
by
Davis King
Browse files
Still messing with travis
parent
28418216
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
17 deletions
+29
-17
dlib/travis/build-and-test.sh
dlib/travis/build-and-test.sh
+6
-0
dlib/travis/get-old-cmakes.sh
dlib/travis/get-old-cmakes.sh
+23
-17
No files found.
dlib/travis/build-and-test.sh
View file @
d36c6619
...
@@ -47,6 +47,12 @@ if [ "$VARIANT" = "old-cmake" ]; then
...
@@ -47,6 +47,12 @@ if [ "$VARIANT" = "old-cmake" ]; then
rm
-rf
*
rm
-rf
*
$CMAKEDIR
/3.5/bin/cmake ../dlib/test/tools
$CMAKEDIR
/3.5/bin/cmake ../dlib/test/tools
$CMAKEDIR
/3.5/bin/cmake
--build
.
--
-j
2
$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
fi
if
[
"
$VARIANT
"
=
"examples"
]
;
then
if
[
"
$VARIANT
"
=
"examples"
]
;
then
...
...
dlib/travis/get-old-cmakes.sh
View file @
d36c6619
#!/usr/bin/env bash
#!/usr/bin/env bash
# Exit if anything fails.
set
-eux
OUTDIR
=
cmake
echo
"Checking if cmake already downloaded"
# Make sure the binaries are there, if not then delete the directory and redownload
if
[
!
-x
$OUTDIR
/2.8/bin/cmake
]
||
[
!
-x
$OUTDIR
/3.1/bin/cmake
]
||
[
!
-x
$OUTDIR
/3.5/bin/cmake
]
;
then
./cmake/2.8/bin/cmake
--version
||
rm
-rf
cmake
echo
"Didn't find it, clearing old cmake folder"
./cmake/3.1/bin/cmake
--version
||
rm
-rf
cmake
rm
-rf
$OUTDIR
./cmake/3.5/bin/cmake
--version
||
rm
-rf
cmake
fi
if
[[
!
-d
$OUTDIR
]]
;
then
# Exit if anything fails.
set
-eux
if
[[
!
-d
cmake
]]
;
then
echo
"Downloading cmake..."
echo
"Downloading cmake..."
# Travis requires 64bit binaries but they aren't available for this version of cmake, so we build from source
# 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"
CMAKE_URL
=
"https://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz"
mkdir
-p
$OUTDIR
/2.8
mkdir
-p
cmake
/2.8
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
$OUTDIR
/2.8
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
cmake
/2.8
cd
$OUTDIR
/2.8
pushd
cmake
/2.8
./configure
./configure
make
-j2
make
-j2
cd
..
popd
CMAKE_URL
=
"http://www.cmake.org/files/v3.1/cmake-3.1.2-Linux-x86_64.tar.gz"
CMAKE_URL
=
"http://www.cmake.org/files/v3.1/cmake-3.1.2-Linux-x86_64.tar.gz"
mkdir
-p
$OUTDIR
/3.1
mkdir
-p
cmake
/3.1
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
$OUTDIR
/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"
CMAKE_URL
=
"http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz"
mkdir
-p
$OUTDIR
/3.5
mkdir
-p
cmake
/3.5
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
$OUTDIR
/3.5
wget
--no-check-certificate
-O
-
${
CMAKE_URL
}
|
tar
--strip-components
=
1
-xz
-C
cmake
/3.5
fi
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
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