Skip to content

Commit 682709f

Browse files
committed
[build] Add tests for built Python packages.
1 parent 00c9085 commit 682709f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,17 @@ script:
4949
- python -m pytest tests/
5050
# TODO: Install and test the built Python packages.
5151
# TODO: Install ffmpeg/mkvtoolnix to run split-video tests.
52+
53+
# Install and test source distribution.
54+
- python -m pip install dist/scenedetect-`python -c "import scenedetect; print(scenedetect.__version__[1:])"`.tar.gz
55+
- scenedetect version
56+
- scenedetect -i tests/resources/testvideo.mp4 -b opencv detect-content time -e 2s
57+
- scenedetect -i tests/resources/testvideo.mp4 -b pyav detect-content time -e 2s
58+
- python -m pip uninstall scenedetect
59+
60+
# Install and test binary wheel.
61+
- python -m pip install dist/scenedetect-`python -c "import scenedetect; print(scenedetect.__version__[1:])"`-py3-none-any.whl
62+
- scenedetect version
63+
- scenedetect -i tests/resources/testvideo.mp4 -b opencv detect-content time -e 2s
64+
- scenedetect -i tests/resources/testvideo.mp4 -b pyav detect-content time -e 2s
65+
- python -m pip uninstall scenedetect

0 commit comments

Comments
 (0)