File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,29 @@ function install_latest_python()
50
50
python -V
51
51
}
52
52
53
+ # update cmake version to 3.14
54
+ function update_cmake_to_314()
55
+ {
56
+
57
+ if [ " $TRAVIS_OS_NAME " == " osx" ]; then
58
+ curl https://cmake.org/files/v3.14/cmake-3.14.0-Darwin-x86_64.tar.gz -O
59
+ tar -xzf cmake-3.14.0-Darwin-x86_64.tar.gz
60
+ sudo mv cmake-3.14.0-Darwin-x86_64/CMake.app /Applications
61
+ else
62
+ # linux system
63
+ # build with source code
64
+ echo " downloading cmake 3.14.0"
65
+ curl https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz > ./cmake-3.14.0.tar.gz
66
+ echo " extract cmake 3.14.0"
67
+ tar -xzf cmake-3.14.0.tar.gz > /dev/null
68
+ cd cmake-3.14.0
69
+ echo " build and install cmake 3.14.0"
70
+ cmake . > /dev/null
71
+ make > /dev/null
72
+ sudo make install
73
+ fi
74
+ }
75
+
53
76
# set up environment according os and target
54
77
function install_environement_for_pull_request()
55
78
{
@@ -69,6 +92,8 @@ function install_environement_for_pull_request()
69
92
install_python_module_for_osx
70
93
fi
71
94
95
+ update_cmake_to_314
96
+
72
97
# use NDK's clang to generate binding codes
73
98
install_android_ndk
74
99
download_deps
You can’t perform that action at this time.
0 commit comments