Skip to content

Commit 2c98bec

Browse files
authored
Merge pull request PaddlePaddle#2081 from PaddlePaddle/release/0.10.0
Release/0.10.0
2 parents 492730b + 1b83092 commit 2c98bec

File tree

1,305 files changed

+67651
-25544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,305 files changed

+67651
-25544
lines changed

.dockerignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.DS_Store
2+
build/
3+
*.user
4+
.vscode
5+
.idea
6+
.project
7+
.cproject
8+
.pydevproject
9+
Makefile
10+
.test_env/
11+
third_party/
12+
*~
13+
bazel-*
14+
15+
!build/*.deb

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
*.DS_Store
22
build/
3+
build_doc/
34
*.user
45

56
.vscode
67
.idea
78
.project
89
.cproject
910
.pydevproject
11+
.settings/
1012
Makefile
13+
.test_env/
14+
third_party/
15+
16+
*~
17+
bazel-*
18+
third_party/

.pre-commit-config.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
2-
sha: c25201a00e6b0514370501050cf2a8538ac12270
2+
sha: v1.0.1
33
hooks:
44
- id: remove-crlf
5+
files: (?!.*third_party)^.*$ | (?!.*book)^.*$
56
- repo: https://github.com/reyoung/mirrors-yapf.git
67
sha: v0.13.2
78
hooks:
89
- id: yapf
10+
files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
911
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
sha: 4ef03c4223ad322c7adaa6c6c0efb26b57df3b71
12+
sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0
1113
hooks:
1214
- id: check-added-large-files
1315
- id: check-merge-conflict
1416
- id: check-symlinks
1517
- id: detect-private-key
18+
files: (?!.*third_party)^.*$ | (?!.*book)^.*$
1619
- id: end-of-file-fixer
17-
# TODO(yuyang): trailing whitespace has some bugs on markdown
18-
# files now, please not add it to pre-commit hook now
19-
# - id: trailing-whitespace
20-
#
21-
# TODO(yuyang): debug-statements not fit for Paddle, because
22-
# not all of our python code is runnable. Some are used for
23-
# documenation
24-
# - id: debug-statements
20+
- repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git
21+
sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29
22+
hooks:
23+
- id: clang-formater

.travis.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,59 @@
11
language: cpp
2-
cache: ccache
2+
cache:
3+
directories:
4+
- $HOME/third_party
5+
- $HOME/.ccache
6+
- $HOME/.cache/pip
37
sudo: required
48
dist: trusty
59
os:
610
- linux
7-
- osx
811
env:
912
- JOB=DOCS
1013
- JOB=BUILD_AND_TEST
11-
matrix:
12-
exclude:
13-
- os: osx
14-
env: JOB=DOCS # Only generate documentation in linux
15-
14+
- JOB=PRE_COMMIT
1615
addons:
1716
apt:
1817
packages:
1918
- gcc-4.8
2019
- g++-4.8
21-
- wget
20+
- gfortran-4.8
2221
- git
2322
- build-essential
24-
- libatlas-base-dev
2523
- python
2624
- python-pip
2725
- python2.7-dev
28-
- m4
29-
- libprotobuf-dev
30-
- doxygen
31-
- protobuf-compiler
32-
- python-protobuf
3326
- python-numpy
3427
- python-wheel
35-
- libgoogle-glog-dev
36-
- libgflags-dev
37-
- libgtest-dev
3828
- curl
39-
- lcov
40-
- graphviz
4129
- swig
30+
- graphviz
31+
- clang-format-3.8
32+
- automake
33+
- libtool
34+
- ccache
4235
before_install:
4336
- |
4437
if [ ${JOB} == "BUILD_AND_TEST" ]; then
45-
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)'
46-
then
47-
echo "Only markdown docs were updated, stopping build process."
48-
exit
38+
local change_list=`git diff --name-only $TRAVIS_COMMIT_RANGE`
39+
if [ $? -eq 0 ]; then # if git diff return no zero, then rerun unit test.
40+
if ! echo ${change_list} | grep -qvE '(\.md$)|(\.rst$)|(\.jpg$)|(\.png$)'
41+
then
42+
echo "Only markdown docs were updated, stopping build process."
43+
exit
44+
fi
4945
fi
5046
fi
51-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo paddle/scripts/travis/before_install.linux.sh; fi
52-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
53-
- pip install wheel protobuf 'sphinx==1.4.9' breathe recommonmark virtualenv numpy
47+
- if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
48+
# Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python
49+
# protobuf version.
50+
- pip install numpy wheel 'protobuf==3.1' sphinx recommonmark sphinx-rtd-theme==0.1.9 virtualenv pre-commit requests==2.9.2 LinkChecker
51+
- |
52+
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
5453
script:
55-
- paddle/scripts/travis/main.sh
54+
- |
55+
timeout 2580 paddle/scripts/travis/main.sh # 43min timeout
56+
RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else false; fi;
5657
notifications:
5758
email:
5859
on_success: change

0 commit comments

Comments
 (0)