2017-01-09 12:29:04 +01:00
|
|
|
language: python
|
|
|
|
python:
|
2018-03-19 17:57:32 +01:00
|
|
|
- "3.4"
|
|
|
|
- "3.5"
|
|
|
|
- "3.6"
|
2019-11-19 17:41:56 +01:00
|
|
|
- "3.7"
|
|
|
|
- "3.8"
|
2019-01-31 15:55:45 +01:00
|
|
|
- "pypy3"
|
2018-03-19 17:57:32 +01:00
|
|
|
env:
|
|
|
|
- GALLERYDL_TESTS=core
|
|
|
|
matrix:
|
|
|
|
include:
|
2019-11-19 17:41:56 +01:00
|
|
|
- python: "3.8"
|
2018-03-19 18:07:19 +01:00
|
|
|
env: GALLERYDL_TESTS=results
|
2020-03-23 22:59:01 +01:00
|
|
|
- python: "3.8"
|
|
|
|
env: GALLERYDL_TESTS=flake8
|
|
|
|
install: pip install flake8
|
|
|
|
script: flake8 .
|
2019-04-28 04:50:04 +02:00
|
|
|
- language: minimal
|
2019-08-11 16:03:19 +02:00
|
|
|
env: GALLERYDL_TESTS=snap
|
2019-04-28 04:50:04 +02:00
|
|
|
addons:
|
|
|
|
snaps:
|
|
|
|
- name: snapcraft
|
|
|
|
classic: true
|
2019-08-11 16:03:19 +02:00
|
|
|
install:
|
|
|
|
- true
|
|
|
|
script:
|
|
|
|
- sudo apt update
|
|
|
|
- snapcraft --destructive-mode
|
|
|
|
- sudo snap try
|
|
|
|
- snap run gallery-dl --verbose https://twitter.com/ubuntu/status/1121001597092364288
|
2020-03-23 23:06:21 +01:00
|
|
|
allow_failures:
|
|
|
|
- env: GALLERYDL_TESTS=results
|
|
|
|
- env: GALLERYDL_TESTS=snap
|
2018-03-19 17:57:32 +01:00
|
|
|
|
2017-01-11 00:17:02 +01:00
|
|
|
git:
|
2018-03-19 17:57:32 +01:00
|
|
|
depth: 3
|
2019-01-31 15:55:45 +01:00
|
|
|
quiet: true
|
2018-03-19 17:57:32 +01:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^v\d+\.\d+\.\d+(-\S*)?$/
|
2019-01-31 15:55:45 +01:00
|
|
|
- /^test(-\w+)+$/
|
2018-03-19 17:57:32 +01:00
|
|
|
script:
|
2019-08-11 16:03:19 +02:00
|
|
|
- ./scripts/run_tests.sh
|