You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
706 B
36 lines
706 B
language: cpp
|
|
cache: ccache
|
|
sudo: required
|
|
dist: xenial
|
|
services:
|
|
- docker
|
|
os:
|
|
- linux
|
|
env:
|
|
- JOB=PRE_COMMIT
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- git
|
|
- python3-pip
|
|
- python3-dev
|
|
|
|
before_install:
|
|
- python3 --version
|
|
- python3 -m pip --version
|
|
- sudo pip install -U virtualenv pre-commit pip
|
|
- docker pull paddlepaddle/paddle:latest
|
|
|
|
script:
|
|
- 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
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|