From 73137dd10446fcd15ce1273d4a31ffef63c9f094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Sun, 28 Apr 2019 10:50:04 +0800 Subject: [PATCH] Support snap building and testing in Travis CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index a1c1942f56c..e0555845914 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,14 +10,25 @@ matrix: include: - python: "3.7" dist: xenial + env: SNAP_TESTS=false - python: "3.8-dev" dist: xenial + env: SNAP_TESTS=false - python: "3.6" env: GALLERYDL_TESTS=results + env: SNAP_TESTS=false + - dist: xenial + env: SNAP_TESTS=true git: depth: 3 quiet: true + +addons: + snaps: + - name: snapcraft + classic: true + branches: only: - master @@ -26,3 +37,4 @@ branches: script: - ./scripts/run_tests.sh + - '[[ "${SNAP_TESTS}" = true ]] && snapcraft --destructive-mode && sudo snap try && snap run gallery-dl'