update .travis.yml and run_tests.sh
- add python3.8 and pypy3 builds - remove deprecated 'sudo: true' and 'sudo: false' - enable builds for 'test-...' branches
This commit is contained in:
parent
45e529ab91
commit
373cb07b28
@ -3,23 +3,26 @@ python:
|
|||||||
- "3.4"
|
- "3.4"
|
||||||
- "3.5"
|
- "3.5"
|
||||||
- "3.6"
|
- "3.6"
|
||||||
|
- "pypy3"
|
||||||
env:
|
env:
|
||||||
- GALLERYDL_TESTS=core
|
- GALLERYDL_TESTS=core
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: "3.7"
|
- python: "3.7"
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: true
|
- python: "3.8-dev"
|
||||||
|
dist: xenial
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
env: GALLERYDL_TESTS=results
|
env: GALLERYDL_TESTS=results
|
||||||
|
|
||||||
sudo: false
|
|
||||||
git:
|
git:
|
||||||
depth: 3
|
depth: 3
|
||||||
|
quiet: true
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- /^v\d+\.\d+\.\d+(-\S*)?$/
|
- /^v\d+\.\d+\.\d+(-\S*)?$/
|
||||||
|
- /^test(-\w+)+$/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./scripts/run_tests.sh
|
- ./scripts/run_tests.sh
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
TESTS_CORE=(config cookies downloader extractor oauth text util)
|
TESTS_CORE=(config cookies downloader extractor oauth text util)
|
||||||
TESTS_RESULTS=(results)
|
TESTS_RESULTS=(results)
|
||||||
|
|
||||||
|
|
||||||
# select tests
|
# select tests
|
||||||
TESTS=()
|
case "${1:-${GALLERYDL_TESTS:-core}}" in
|
||||||
case "${GALLERYDL_TESTS}" in
|
|
||||||
core) TESTS=( ${TESTS_CORE[@]} );;
|
core) TESTS=( ${TESTS_CORE[@]} );;
|
||||||
results) TESTS=( ${TESTS_RESULTS[@]} );;
|
results) TESTS=( ${TESTS_RESULTS[@]} );;
|
||||||
|
*) TESTS=( );;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
@ -19,4 +21,4 @@ TESTS=( ${TESTS[@]/%/.py} )
|
|||||||
|
|
||||||
# run 'nosetests' with selected tests
|
# run 'nosetests' with selected tests
|
||||||
# (or all tests if ${TESTS} is empty)
|
# (or all tests if ${TESTS} is empty)
|
||||||
nosetests --verbose -w test ${TESTS[@]}
|
nosetests --verbose -w "${DIR}/../test" ${TESTS[@]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user