Support snap building and simple testrun in Travis CI
This ensure snap build-time and run-time problems will be noticed more promptly by the maintainers, like issue #229. Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
This commit is contained in:
committed by
Mike Fährmann
parent
2df3aaf966
commit
8acbe863cb
10
.travis.yml
10
.travis.yml
@@ -14,6 +14,13 @@ matrix:
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
env: GALLERYDL_TESTS=results
|
env: GALLERYDL_TESTS=results
|
||||||
|
- language: minimal
|
||||||
|
dist: xenial
|
||||||
|
addons:
|
||||||
|
snaps:
|
||||||
|
- name: snapcraft
|
||||||
|
classic: true
|
||||||
|
env: SNAP_TESTS=true
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 3
|
depth: 3
|
||||||
@@ -25,4 +32,5 @@ branches:
|
|||||||
- /^test(-\w+)+$/
|
- /^test(-\w+)+$/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/run_tests.sh
|
- 'if test "${SNAP_TESTS}" != true; then ./scripts/run_tests.sh; else true; fi'
|
||||||
|
- 'if test "${SNAP_TESTS}" = true; then sudo apt update && snapcraft --destructive-mode && sudo snap try && snap run gallery-dl --verbose https://twitter.com/ubuntu/status/1121001597092364288; else true; fi'
|
||||||
|
|||||||
Reference in New Issue
Block a user