1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00
gallery-dl/.travis.yml
林博仁(Buo-ren Lin) 8acbe863cb 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>
2019-04-30 15:55:50 +02:00

37 lines
817 B
YAML

language: python
python:
- "3.4"
- "3.5"
- "3.6"
- "pypy3"
env:
- GALLERYDL_TESTS=core
matrix:
include:
- python: "3.7"
dist: xenial
- python: "3.8-dev"
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:
- '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'