forked from MarcBS/multimodal_keras_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
28 lines (25 loc) · 883 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
sudo: required
dist: bionic
language: python
matrix:
include:
- python: 3.6
env: TEST_MODE=PEP8
- python: 3.6
env: TEST_MODE=GENERAL
- python: 3.6
env: TEST_MODE=EXTRA
# command to install dependencies
install:
- travis_wait 30 pip install .
- pip install pytest pytest-cache pytest-cov pytest-forked flake8 pytest-xdist --progress-bar off
- pip install -e git+https://github.com/lvapeab/coco-caption.git#egg=coco-caption --progress-bar off
# command to run tests
script:
- if [[ "$TEST_MODE" == "PEP8" ]]; then
PYTHONPATH=$PWD:$PYTHONPATH python -m flake8 --config=./.flake8 .;
elif [[ "$TEST_MODE" == "GENERAL" ]]; then
PYTHONPATH=$PWD:$PYTHONPATH pytest -s tests/general/ 2>&1 ;
elif [[ "$TEST_MODE" == "EXTRA" ]]; then
PYTHONPATH=$PWD:$PYTHONPATH pytest -s tests/extra/ 2>&1 ;
fi