Skip to content

Commit

Permalink
Support snap building and testing in Travis CI
Browse files Browse the repository at this point in the history
This ensure snap build-time and run-time problems will be noticed more
promptly by the maintainers, like issue mikf#229.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
  • Loading branch information
brlin-tw committed Apr 28, 2019
1 parent 76df628 commit 2620eb5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,29 @@ matrix:
dist: xenial
- python: "3.6"
env: GALLERYDL_TESTS=results
- language: minimal
dist: xenial

addons:
snaps:
- name: snapcraft
classic: true
- name: multipass
classic: true
channel: beta

env: SNAP_TESTS=true

git:
depth: 3
quiet: true

branches:
only:
- master
- /^v\d+\.\d+\.\d+(-\S*)?$/
- /^test(-\w+)+$/

script:
- ./scripts/run_tests.sh
- 'if test "${SNAP_TESTS}" != true; then ./scripts/run_tests.sh; fi'
- 'if test "${SNAP_TESTS}" = true; then sudo apt update && snapcraft && sudo snap try && snap run gallery-dl; else true; fi'

0 comments on commit 2620eb5

Please sign in to comment.