.travis.yml 672 字节
Newer Older
Y
yangyaming 已提交
1 2 3
language: cpp
cache: ccache
sudo: required
H
Hui Zhang 已提交
4
dist: xenial 
Y
yangyaming 已提交
5 6 7 8 9 10 11 12 13 14 15
services:
  - docker
os:
  - linux
env:
  - JOB=PRE_COMMIT

addons:
  apt:
    packages:
      - git
Y
yangyaming 已提交
16

Y
yangyaming 已提交
17
before_install:
H
Hui Zhang 已提交
18
  -  python3 --version
H
Hui Zhang 已提交
19 20
  -  python3 -m pip --version
  -  python3 -m pip install -U virtualenv pre-commit pip
H
fix ci  
Hui Zhang 已提交
21
  -  docker pull paddlepaddle/paddle:latest
Y
yangyaming 已提交
22

Y
yangyaming 已提交
23
script:
Y
yangyaming 已提交
24 25 26 27 28 29
  - exit_code=0
  - .travis/precommit.sh || exit_code=$(( exit_code | $? ))
  - 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 | $? ))
    exit $exit_code

Y
yangyaming 已提交
30 31 32 33
notifications:
  email:
    on_success: change
    on_failure: always