Skip to content

Commit 8d55151

Browse files
authored
Merge pull request #88 from pkuyym/ci_unittest
Expand .travis.yml to support docker.
2 parents d91dab0 + 1251218 commit 8d55151

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: cpp
22
cache: ccache
33
sudo: required
44
dist: trusty
5+
services:
6+
- docker
57
os:
68
- linux
79
env:
@@ -16,8 +18,13 @@ addons:
1618
- python2.7-dev
1719
before_install:
1820
- pip install -U virtualenv pre-commit pip
21+
- docker pull paddlepaddle/paddle:latest
1922
script:
2023
- .travis/precommit.sh
24+
- docker run -i --rm -v "$PWD:/py_unittest" paddlepaddle/paddle:latest /bin/bash -c
25+
"cd /py_unittest && find . -name 'tests' -type d -print0 | xargs -0 -I{} -n1 bash -c 'cd {};
26+
python -m unittest discover -v'"
27+
2128
notifications:
2229
email:
2330
on_success: change

0 commit comments

Comments
 (0)