.travis.yml 854 B

1234567891011121314151617181920212223242526272829303132333435
  1. language: cpp
  2. cache: ccache
  3. sudo: required
  4. dist: trusty
  5. services:
  6. - docker
  7. os:
  8. - linux
  9. env:
  10. - JOB=PRE_COMMIT
  11. addons:
  12. apt:
  13. packages:
  14. - git
  15. - python
  16. - python-pip
  17. - python2.7-dev
  18. ssh_known_hosts: 13.229.163.131
  19. before_install:
  20. - sudo pip install -U virtualenv pre-commit pip -i https://pypi.tuna.tsinghua.edu.cn/simple
  21. - docker pull paddlepaddle/paddle:latest
  22. - git pull https://github.com/PaddlePaddle/PaddleDetection develop
  23. script:
  24. - exit_code=0
  25. - .travis/precommit.sh || exit_code=$(( exit_code | $? ))
  26. # - docker run -i --rm -v "$PWD:/py_unittest" paddlepaddle/paddle:latest /bin/bash -c
  27. # 'cd /py_unittest; sh .travis/unittest.sh' || exit_code=$(( exit_code | $? ))
  28. - if [ $exit_code -eq 0 ]; then true; else exit 1; fi;
  29. notifications:
  30. email:
  31. on_success: change
  32. on_failure: always