Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sq975
openpose
提交
eb688904
O
openpose
项目概览
sq975
/
openpose
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openpose
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eb688904
编写于
1月 16, 2019
作者:
R
Raaj
提交者:
Gines
1月 16, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added Travis build for Mac (#1021)
上级
6a6d668c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
18 deletion
+31
-18
.travis.yml
.travis.yml
+12
-8
scripts/osx/install_deps.sh
scripts/osx/install_deps.sh
+2
-3
scripts/travis/configure_cmake.sh
scripts/travis/configure_cmake.sh
+6
-1
scripts/travis/install_deps_osx.sh
scripts/travis/install_deps_osx.sh
+7
-4
scripts/travis/run_make.sh
scripts/travis/run_make.sh
+4
-2
未找到文件。
.travis.yml
浏览文件 @
eb688904
...
...
@@ -99,13 +99,17 @@ matrix:
# - os: windows
# env: NAME="W10-default-cmake-cuda8"
# # TO-DO: To be implemented
# # Mac OSX
# # Mac OSX - Default - CMake - CPU
# - os: osx
# osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
# env: NAME="OSX-default-cmake-cpu" WITH_CUDA=false
# sudo: required
# Mac OSX
# Mac OSX - Default - CMake - CPU
-
os
:
osx
osx_image
:
xcode10.1
# Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
env
:
NAME="OSX-default-cmake-cpu" WITH_CUDA=false
sudo
:
required
-
os
:
osx
osx_image
:
xcode9.4
# xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
env
:
NAME="OSX-python-cmake-cpu" WITH_CUDA=false WITH_PYTHON=true
sudo
:
required
# Install apt dependencies
addons
:
...
...
@@ -120,7 +124,7 @@ addons:
# Install Caffe and OP dependencies
install
:
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash scripts/travis/install_deps_ubuntu.sh ; fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
sudo
bash scripts/travis/install_deps_osx.sh ; fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash scripts/travis/install_deps_osx.sh ; fi
-
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then exit 99 ; fi
# Running CMake
...
...
scripts/osx/install_deps.sh
浏览文件 @
eb688904
...
...
@@ -10,6 +10,5 @@ brew install hdf5 opencv
brew
install
protobuf boost
brew
install
cmake
brew
install
viennacl
# Python dependencies
sudo
pip
install
numpy opencv-python
sudo
pip3
install
numpy opencv-python
sudo
pip
install
numpy
sudo
pip
install
opencv-python
\ No newline at end of file
scripts/travis/configure_cmake.sh
浏览文件 @
eb688904
...
...
@@ -15,7 +15,12 @@ fi
echo
"WITH_PYTHON =
${
WITH_PYTHON
}
."
if
[[
$WITH_PYTHON
==
true
]]
;
then
ARGS
=
"
$ARGS
-DBUILD_PYTHON=On -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7m.so"
if
[[
"
$TRAVIS_OS_NAME
"
==
"linux"
]]
;
then
ARGS
=
"
$ARGS
-DBUILD_PYTHON=On -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7m.so"
fi
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
ARGS
=
"
$ARGS
-DBUILD_PYTHON=On -DPYTHON_EXECUTABLE=/usr/local/bin/python2.7 -DPYTHON_LIBRARY=/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7m.dylib"
fi
fi
# CUDA version
...
...
scripts/travis/install_deps_osx.sh
浏览文件 @
eb688904
#!/bin/bash
# Install dependencies for Mac OS
X
echo
"Running on Mac OS
X
."
# Install dependencies for Mac OS
echo
"Running on Mac OS."
echo
"Mac OSX version not implemented for Travis Build testing."
exit
99
BASEDIR
=
$(
dirname
$0
)
source
$BASEDIR
/defaults.sh
bash scripts/osx/install_brew.sh
bash scripts/osx/install_deps.sh
scripts/travis/run_make.sh
浏览文件 @
eb688904
...
...
@@ -7,7 +7,9 @@ source $BASEDIR/defaults.sh
if
[[
$WITH_CMAKE
==
true
]]
;
then
cd
build
make
-j
`
nproc
`
if
[[
"
$TRAVIS_OS_NAME
"
==
"linux"
]]
;
then
make
-j
`
nproc
`
;
fi
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
make
-j1
;
fi
else
make all
-j
`
nproc
`
if
[[
"
$TRAVIS_OS_NAME
"
==
"linux"
]]
;
then
make all
-j
`
nproc
`
;
fi
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
make all
-j1
;
fi
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录