Skip to content

Commit ba466e9

Browse files
committed
stop repeating yourself.
1 parent 1176df2 commit ba466e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ python:
1212
- "pypy3"
1313
# command to install dependencies
1414
install:
15+
- imagesize=''
1516
- pip install -U coveralls pytest pytest-cov 'coverage<5' codecov
16-
- if [[ $IMAGESIZE == true ]] ; then pip install -e '.[imagesize]' ; fi
17-
- if [[ $IMAGESIZE == false ]] ; then pip install -e . ; fi
17+
- if [[ $IMAGESIZE == true ]] ; then imagesize='[imagesize]' ; fi
18+
- pip install -e '.${imagesize}'
1819
# command to run tests
1920
script: py.test
2021
after_success:

0 commit comments

Comments
 (0)