.travis.yml 1.3 KB
Newer Older
Y
Yu Yang 已提交
1
language: cpp
2 3 4
cache:
  directories:
    - $HOME/.ccache
Y
Yu Yang 已提交
5
    - $HOME/.cache/pip
Y
Yu Yang 已提交
6
    - $TRAVIS_BUILD_DIR/build/third_party
Y
Yu Yang 已提交
7 8
sudo: required
dist: trusty
Y
Yu Yang 已提交
9 10
os:
  - linux
Y
Yu Yang 已提交
11
env:
Y
Yi Wang 已提交
12 13
  - JOB=build_doc
  - JOB=check_style
Y
Yu Yang 已提交
14 15 16 17 18 19 20
addons:
  apt:
    packages:
      - gcc-4.8
      - g++-4.8
      - git
      - build-essential
21
      - python
Y
Yu Yang 已提交
22
      - python-pip
23
      - python2.7-dev
24 25
      - python-numpy
      - python-wheel
L
liaogang 已提交
26
      - libboost-dev
G
gangliao 已提交
27
      - curl
L
liaogang 已提交
28
      - swig
Y
Yu Yang 已提交
29
      - graphviz
Y
Yu Yang 已提交
30
      - clang-format-3.8
31 32
      - automake
      - libtool
33
      - ccache
Y
Yu Yang 已提交
34
before_install:
Y
Yi Wang 已提交
35
  - if [[ "$JOB" == "check_style" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
Y
Yu Yang 已提交
36 37
  # Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python 
  # protobuf version.
D
dzhwinter 已提交
38 39
  - pip install numpy wheel 'protobuf==3.1' sphinx==1.5.6 recommonmark sphinx-rtd-theme==0.1.9 virtualenv pre-commit requests==2.9.2 LinkChecker
  - pip install rarfile
Q
qiaolongfei 已提交
40
  - eval "$(GIMME_GO_VERSION=1.8.3 gimme)"
Y
Yu Yang 已提交
41 42
  - |
    function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
Y
Yu Yang 已提交
43
script:
44
  - |
G
gongweibao 已提交
45
    timeout 2580 paddle/scripts/travis/${JOB}.sh -e "WITH_GOLANG=ON"  # 43min timeout
46
    RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else false; fi;
Y
Yu Yang 已提交
47 48 49 50
notifications:
  email:
    on_success: change
    on_failure: always