.travis.yml 1.1 KB
Newer Older
T
tangwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12
language: generic 
sudo: required
dist: trusty

services:
  - docker

os:
  - linux

env:
  - JOB=check_style
C
Chengmo 已提交
13
  - JOB=model_test
T
tangwei 已提交
14 15 16

before_install:
  # For pylint dockstring checker
C
Chengmo 已提交
17 18
  - sudo apt-get update 
  - sudo apt-get install -y python-pip libpython-dev
C
Chengmo 已提交
19 20 21
  - sudo apt-get remove python-urllib3
  - sudo apt-get purge python-urllib3
  - sudo rm /usr/lib/python2.7/dist-packages/chardet-*
C
Chengmo 已提交
22
  - sudo pip install -U pip
C
Chengmo 已提交
23
  - sudo pip install --upgrade setuptools
C
Chengmo 已提交
24 25
  - sudo pip install six --upgrade --ignore-installed six
  - sudo pip install PyYAML
T
tangwei 已提交
26
  - sudo pip install pylint pytest astroid isort pre-commit
C
Chengmo 已提交
27
  - sudo pip install kiwisolver
C
Chengmo 已提交
28 29 30
  - sudo pip install scikit-build
  - sudo pip install Pillow==5.3.0
  - sudo pip install opencv-python==3.4.3.18
M
udpate  
malin10 已提交
31
  - sudo pip install rarfile==3.0
C
Chengmo 已提交
32
  - sudo pip install paddlepaddle==1.7.2
C
Chengmo 已提交
33
  - sudo python setup.py install
T
tangwei 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47
  - |
    function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }

script:
  - "travis_wait 30 sleep 1800 &"
  - |
    # 43min timeout
    tools/build_script.sh ${JOB}
    if [ $? -eq 0 ] || [ $? -eq 142 ]; then true; else exit 1; fi;

notifications:
  email:
    on_success: change
    on_failure: always