.travis.yml 1.3 KB
Newer Older
1 2 3 4
language: cpp
cache: ccache
sudo: required
dist: trusty
Y
Yu Yang 已提交
5 6 7
os:
  - linux
  - osx
8 9 10
env:
  - JOB=DOCS
  - JOB=BUILD_AND_TEST
Y
Yu Yang 已提交
11 12 13 14 15
matrix:
  exclude:
    - os: osx
      env: JOB=DOCS  # Only generate documentation in linux

16 17 18 19 20 21 22 23 24 25 26 27 28 29
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
30
      - doxygen
31 32 33 34 35 36 37
      - protobuf-compiler
      - python-protobuf
      - python-numpy
      - python-wheel
      - libgoogle-glog-dev
      - libgflags-dev
      - libgtest-dev
38 39
      - curl
      - lcov
Y
Yu Yang 已提交
40
      - graphviz
41
      - swig
42
before_install:
43 44
  - |
    if [ ${JOB} == "BUILD_AND_TEST" ]; then
45
      if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(\.rst$)'
L
liaogang 已提交
46
      then
47 48
        echo "Only markdown docs were updated, stopping build process."
        exit
L
liaogang 已提交
49
      fi
50
    fi
Y
Yu Yang 已提交
51 52
  - 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
53
  - pip install wheel protobuf sphinx breathe recommonmark virtualenv numpy
54
script:
55
  - paddle/scripts/travis/main.sh
56 57 58 59
notifications:
  email:
    on_success: change
    on_failure: always
新手
引导
客服 返回
顶部