.travis.yml 813 字节
Newer Older
R
root 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
language: cpp
cache: ccache
sudo: required
dist: trusty
services:
  - docker
os:
  - linux
env:
  - JOB=PRE_COMMIT

addons:
  apt:
    packages:
      - git
      - python
      - python-pip
      - python2.7-dev
  ssh_known_hosts: 13.229.163.131
before_install:
  - sudo pip install -U virtualenv pre-commit pip
  - docker pull paddlepaddle/paddle:latest
23
  - git pull https://github.com/PaddlePaddle/PaddleDetection dygraph -r
R
root 已提交
24 25 26 27

script:
  - exit_code=0
  - .travis/precommit.sh || exit_code=$(( exit_code | $? ))
K
Kaipeng Deng 已提交
28 29
  # - docker run -i --rm -v "$PWD:/py_unittest" paddlepaddle/paddle:latest /bin/bash -c
  #   'cd /py_unittest; sh .travis/unittest.sh' || exit_code=$(( exit_code | $? ))
30
  - if [ $exit_code -eq 0  ]; then true; else exit 1; fi;
R
root 已提交
31 32 33 34 35

notifications:
  email:
    on_success: change
    on_failure: always