Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
3edc4202
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3edc4202
编写于
10月 11, 2016
作者:
Y
Yu Yang
提交者:
gangliao
10月 11, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add travis for osx (#189)
上级
9f244e4a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
42 addition
and
5 deletion
+42
-5
.travis.yml
.travis.yml
+10
-1
paddle/.set_python_path.sh
paddle/.set_python_path.sh
+1
-1
paddle/scripts/travis/before_install.linux.sh
paddle/scripts/travis/before_install.linux.sh
+0
-0
paddle/scripts/travis/before_install.osx.sh
paddle/scripts/travis/before_install.osx.sh
+13
-0
paddle/scripts/travis/build_and_test.sh
paddle/scripts/travis/build_and_test.sh
+18
-3
未找到文件。
.travis.yml
浏览文件 @
3edc4202
...
...
@@ -2,9 +2,17 @@ language: cpp
cache
:
ccache
sudo
:
required
dist
:
trusty
os
:
-
linux
-
osx
env
:
-
JOB=DOCS
-
JOB=BUILD_AND_TEST
matrix
:
exclude
:
-
os
:
osx
env
:
JOB=DOCS
# Only generate documentation in linux
addons
:
apt
:
packages
:
...
...
@@ -28,8 +36,9 @@ addons:
-
libgflags-dev
-
libgtest-dev
before_install
:
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo paddle/scripts/travis/before_install.linux.sh; fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
-
pip install wheel protobuf sphinx breathe recommonmark
-
sudo paddle/scripts/travis/before_install.sh
script
:
-
paddle/scripts/travis/main.sh
notifications
:
...
...
paddle/.set_python_path.sh
浏览文件 @
3edc4202
...
...
@@ -33,7 +33,7 @@ if ! python -c "import paddle" >/dev/null 2>/dev/null; then
esac
done
shift
$((
$OPTIND
-
1
))
export
PYTHONPATH
=
$PYPATH
export
PYTHONPATH
=
$PYPATH
:
$PYTHONPATH
$@
else
echo
"paddle package is already in your PYTHONPATH. But unittest need a clean environment."
...
...
paddle/scripts/travis/before_install.sh
→
paddle/scripts/travis/before_install.
linux.
sh
浏览文件 @
3edc4202
文件已移动
paddle/scripts/travis/before_install.osx.sh
0 → 100755
浏览文件 @
3edc4202
#!/bin/bash
brew update
brew tap homebrew/science
brew
install
python
sudo
pip
install
--upgrade
protobuf
==
2.6.0
brew
install
homebrew/versions/protobuf260
--without-python
brew
install
cmake python glog gflags openblas wget md5sha1sum
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
-O
gtest.tar.gz
tar
xf gtest.tar.gz
cd
googletest-release-1.8.0/
cmake
.
make
install
paddle/scripts/travis/build_and_test.sh
浏览文件 @
3edc4202
#!/bin/bash
source
./common.sh
cmake ..
-DCMAKE_BUILD_TYPE
=
Debug
-DWITH_GPU
=
OFF
-DWITH_DOC
=
OFF
-DWITH_TESTING
=
ON
-DON_TRAVIS
=
ON
make
-j
`
nproc
`
env
CTEST_OUTPUT_ON_FAILURE
=
1 make
test
ARGS
=
"-j
`
nproc
`
"
CMAKE_EXTRA
=
""
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
CMAKE_EXTRA
=
"-DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib"
fi
cmake ..
-DCMAKE_BUILD_TYPE
=
Debug
-DWITH_GPU
=
OFF
-DWITH_DOC
=
OFF
-DWITH_TESTING
=
ON
-DON_TRAVIS
=
ON
${
CMAKE_EXTRA
}
NPROC
=
1
if
[[
"
$TRAVIS_OS_NAME
"
==
"linux"
]]
;
then
NRPOC
=
`
nproc
`
elif
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
NPROC
=
`
sysctl
-n
hw.ncpu
`
fi
make
-j
$NPROC
env
CTEST_OUTPUT_ON_FAILURE
=
1 make
test
ARGS
=
"-j
$NPROC
"
sudo
make
install
sudo
paddle version
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录