Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
清风笑55188
Paddle
提交
daaf5a42
P
Paddle
项目概览
清风笑55188
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
daaf5a42
编写于
9月 08, 2016
作者:
Y
Yu Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add travis support to PaddlePaddle
上级
79d4e5df
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
65 addition
and
5 deletion
+65
-5
.travis.yml
.travis.yml
+35
-0
CMakeLists.txt
CMakeLists.txt
+1
-0
README.md
README.md
+1
-0
paddle/scripts/travis/before_install.sh
paddle/scripts/travis/before_install.sh
+7
-0
paddle/scripts/travis/build.sh
paddle/scripts/travis/build.sh
+9
-0
paddle/scripts/travis/unittest.sh
paddle/scripts/travis/unittest.sh
+6
-0
paddle/trainer/tests/CMakeLists.txt
paddle/trainer/tests/CMakeLists.txt
+6
-5
未找到文件。
.travis.yml
0 → 100644
浏览文件 @
daaf5a42
language
:
cpp
cache
:
ccache
sudo
:
required
dist
:
trusty
addons
:
apt
:
packages
:
-
gcc-4.8
-
g++-4.8
-
wget
-
git
-
build-essential
-
libatlas-base-dev
-
python
-
python-pip
-
python2.7-dev
-
m4
-
libprotobuf-dev
-
protobuf-compiler
-
python-protobuf
-
python-numpy
-
python-wheel
-
libgoogle-glog-dev
-
libgflags-dev
-
libgtest-dev
before_install
:
-
pip install wheel protobuf
-
sudo paddle/scripts/travis/before_install.sh
script
:
-
paddle/scripts/travis/build.sh
-
paddle/scripts/travis/unittest.sh
notifications
:
email
:
on_success
:
change
on_failure
:
always
CMakeLists.txt
浏览文件 @
daaf5a42
...
@@ -37,6 +37,7 @@ option(WITH_TIMER "Compile PaddlePaddle use timer" OFF)
...
@@ -37,6 +37,7 @@ option(WITH_TIMER "Compile PaddlePaddle use timer" OFF)
option
(
WITH_TESTING
"Compile and run unittest for PaddlePaddle"
${
GTEST_FOUND
}
)
option
(
WITH_TESTING
"Compile and run unittest for PaddlePaddle"
${
GTEST_FOUND
}
)
option
(
WITH_DOC
"Compile PaddlePaddle with documentation"
OFF
)
option
(
WITH_DOC
"Compile PaddlePaddle with documentation"
OFF
)
option
(
WITH_SWIG_PY
"Compile PaddlePaddle with py PaddlePaddle prediction api"
${
SWIG_FOUND
}
)
option
(
WITH_SWIG_PY
"Compile PaddlePaddle with py PaddlePaddle prediction api"
${
SWIG_FOUND
}
)
option
(
ON_TRAVIS
"Running test on travis-ci or not."
OFF
)
if
(
NOT CMAKE_BUILD_TYPE
)
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE
"RelWithDebInfo"
CACHE STRING
set
(
CMAKE_BUILD_TYPE
"RelWithDebInfo"
CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel"
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel"
...
...
README.md
浏览文件 @
daaf5a42
# PaddlePaddle
# PaddlePaddle
[
![Build Status
](
https://travis-ci.org/baidu/Paddle.svg?branch=master
)
](https://travis-ci.org/baidu/Paddle)
Welcome to the PaddlePaddle GitHub.
Welcome to the PaddlePaddle GitHub.
...
...
paddle/scripts/travis/before_install.sh
0 → 100755
浏览文件 @
daaf5a42
#!/bin/bash
set
-e
pushd
/usr/src/gtest
cmake
.
make
sudo cp
*
.a /usr/lib
popd
paddle/scripts/travis/build.sh
0 → 100755
浏览文件 @
daaf5a42
#!/bin/bash
cd
`
dirname
$0
`
cd
../../../
set
-e
mkdir
build
cd
build
cmake ..
-DCMAKE_BUILD_TYPE
=
Debug
-DWITH_GPU
=
OFF
-DWITH_DOC
=
OFF
-DWITH_TESTING
=
ON
-DON_TRAVIS
=
ON
make
-j
`
nproc
`
paddle/scripts/travis/unittest.sh
0 → 100755
浏览文件 @
daaf5a42
#!/bin/bash
set
-e
cd
`
dirname
$0
`
cd
../../../build
env
CTEST_OUTPUT_ON_FAILURE
=
1 make
test
ARGS
=
"-j
`
nproc
`
"
paddle/trainer/tests/CMakeLists.txt
浏览文件 @
daaf5a42
...
@@ -53,12 +53,13 @@ add_test(NAME test_CompareTwoOpts
...
@@ -53,12 +53,13 @@ add_test(NAME test_CompareTwoOpts
################# test_CompareSparse ##################
################# test_CompareSparse ##################
add_unittest_without_exec
(
test_CompareSparse
add_unittest_without_exec
(
test_CompareSparse
test_CompareSparse.cpp
)
test_CompareSparse.cpp
)
add_test
(
NAME test_CompareSparse
if
(
NOT ON_TRAVIS
)
COMMAND
${
PROJ_ROOT
}
/paddle/.set_python_path.sh -d
${
PROJ_ROOT
}
/python/
add_test
(
NAME test_CompareSparse
./.set_port.sh -p port -n 6
COMMAND
${
PROJ_ROOT
}
/paddle/.set_python_path.sh -d
${
PROJ_ROOT
}
/python/
${
CMAKE_CURRENT_BINARY_DIR
}
/test_CompareSparse
./.set_port.sh -p port -n 6
${
CMAKE_CURRENT_BINARY_DIR
}
/test_CompareSparse
WORKING_DIRECTORY
${
PROJ_ROOT
}
/paddle/
)
WORKING_DIRECTORY
${
PROJ_ROOT
}
/paddle/
)
endif
()
################# test_recurrent_machine_generation ###############
################# test_recurrent_machine_generation ###############
add_unittest_without_exec
(
test_recurrent_machine_generation
add_unittest_without_exec
(
test_recurrent_machine_generation
test_recurrent_machine_generation.cpp
)
test_recurrent_machine_generation.cpp
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录