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 0de4328 commit 62b1c7e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,24 @@ matrix:
dist: xenial
- python: "3.6"
env: GALLERYDL_TESTS=results
- language: minimal
dist: xenial
addons:
snaps:
- name: snapcraft
classic: true
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 --destructive-mode && sudo snap try && snap run gallery-dl https://twitter.com/ubuntu/status/1121001597092364288; else true; fi'

0 comments on commit 62b1c7e

Please sign in to comment.