2012-11-19 05:08:49 +01:00
|
|
|
language: python
|
2018-05-29 01:33:41 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- STREAMLINK_DIST_DIR=${TRAVIS_BUILD_DIR}/dist
|
|
|
|
- STREAMLINK_INSTALLER_DIST_DIR=${STREAMLINK_DIST_DIR}/nsis
|
|
|
|
- SDIST_KEY_FILE="${TRAVIS_BUILD_DIR}/signing.key"
|
2016-09-19 22:09:45 +02:00
|
|
|
|
2018-10-04 23:23:44 +02:00
|
|
|
git:
|
|
|
|
depth: 300
|
|
|
|
|
2016-10-01 18:30:37 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-11-14 17:17:16 +01:00
|
|
|
- python: '2.7'
|
|
|
|
- python: '3.4'
|
|
|
|
- python: '3.5'
|
2018-05-29 01:33:41 +02:00
|
|
|
env: BUILD_DOCS=yes BUILD_INSTALLER=yes BUILD_SDIST=yes DEPLOY_PYPI=yes
|
2017-01-05 18:28:37 +01:00
|
|
|
- python: '3.6'
|
2018-07-14 01:17:26 +02:00
|
|
|
- python: '3.7'
|
|
|
|
dist: xenial
|
|
|
|
sudo: true
|
|
|
|
- python: '3.8-dev'
|
|
|
|
dist: xenial
|
|
|
|
sudo: true
|
2017-01-05 18:28:37 +01:00
|
|
|
allow_failures:
|
2018-07-14 01:17:26 +02:00
|
|
|
- python: '3.8-dev'
|
2016-09-19 22:09:45 +02:00
|
|
|
|
2016-09-24 01:27:26 +02:00
|
|
|
before_install:
|
2018-02-26 17:30:38 +01:00
|
|
|
- pip install --disable-pip-version-check --upgrade pip setuptools
|
2016-12-15 20:47:22 +01:00
|
|
|
- pip install -r dev-requirements.txt
|
2018-02-26 17:30:38 +01:00
|
|
|
- pip install pycountry
|
2018-06-25 21:57:30 +02:00
|
|
|
- if [[ $BUILD_DOCS == 'yes' ]]; then
|
|
|
|
pip install -r docs-requirements.txt;
|
|
|
|
pip install doctr;
|
|
|
|
fi
|
2016-09-19 22:09:45 +02:00
|
|
|
|
|
|
|
install:
|
2018-02-26 17:30:38 +01:00
|
|
|
- pip install -e .
|
2016-09-19 22:09:45 +02:00
|
|
|
|
2016-09-24 01:27:26 +02:00
|
|
|
script:
|
2018-02-26 17:30:38 +01:00
|
|
|
- pytest --cov
|
2017-01-16 11:48:03 +01:00
|
|
|
- if [[ $BUILD_DOCS == 'yes' ]]; then make --directory=docs html; fi
|
2016-11-14 17:17:16 +01:00
|
|
|
- if [[ $BUILD_INSTALLER == 'yes' ]]; then ./script/makeinstaller.sh; fi
|
2016-09-19 22:09:45 +02:00
|
|
|
|
2014-03-01 20:42:59 +01:00
|
|
|
after_success:
|
2018-06-25 21:57:30 +02:00
|
|
|
- set -e
|
|
|
|
# latest version - push docs for master
|
|
|
|
- if [[ $BUILD_DOCS == 'yes' && $TRAVIS_REPO_SLUG == 'streamlink/streamlink' ]]; then doctr deploy latest; fi
|
|
|
|
# stable version - push docs for tags
|
|
|
|
- if [[ $BUILD_DOCS == 'yes' && $TRAVIS_REPO_SLUG == 'streamlink/streamlink' && -n "$TRAVIS_TAG" ]]; then doctr deploy .; fi
|
2016-09-30 20:12:18 +02:00
|
|
|
- codecov
|
2016-11-14 17:17:16 +01:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- nsis
|
2018-12-31 04:37:51 +01:00
|
|
|
- imagemagick
|
|
|
|
- inkscape
|
2016-11-14 17:17:16 +01:00
|
|
|
|
2017-05-04 10:39:37 +02:00
|
|
|
before_deploy:
|
|
|
|
- ./script/bintrayconfig.sh
|
|
|
|
|
2016-11-14 17:17:16 +01:00
|
|
|
deploy:
|
2017-01-11 16:00:16 +01:00
|
|
|
- provider: releases
|
|
|
|
api_key: "${RELEASES_API_KEY}"
|
|
|
|
file: "${STREAMLINK_INSTALLER_DIST_DIR}/streamlink-${TRAVIS_TAG}.exe"
|
|
|
|
file_glob: true
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $BUILD_INSTALLER = yes
|
2018-05-29 01:33:41 +02:00
|
|
|
repo: streamlink/streamlink
|
2017-01-11 18:02:52 +01:00
|
|
|
- provider: script
|
|
|
|
script: python script/github_releases.py
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2017-05-08 18:34:48 +02:00
|
|
|
condition: $BUILD_INSTALLER == yes
|
2018-05-29 01:33:41 +02:00
|
|
|
repo: streamlink/streamlink
|
2017-05-04 10:39:37 +02:00
|
|
|
- provider: bintray
|
|
|
|
file: build/bintray-nightly.json
|
|
|
|
user: "${BINTRAY_USER}"
|
|
|
|
key: "${BINTRAY_KEY}"
|
2017-01-11 16:00:16 +01:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|
2017-05-08 18:34:48 +02:00
|
|
|
condition: $BUILD_INSTALLER == yes && $TRAVIS_EVENT_TYPE == cron
|
2018-05-29 01:33:41 +02:00
|
|
|
repo: streamlink/streamlink
|
|
|
|
- provider: script
|
|
|
|
script: ./script/sdistsign.sh
|
2018-06-08 03:01:16 +02:00
|
|
|
skip_cleanup: true
|
2018-05-29 01:33:41 +02:00
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $BUILD_SDIST == yes
|
|
|
|
repo: streamlink/streamlink
|
2018-06-08 03:01:16 +02:00
|
|
|
- provider: releases
|
|
|
|
api_key: "${RELEASES_API_KEY}"
|
|
|
|
file: "${STREAMLINK_DIST_DIR}/streamlink-${TRAVIS_TAG}*"
|
|
|
|
file_glob: true
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $BUILD_SDIST = yes
|
|
|
|
repo: streamlink/streamlink
|
2017-05-08 18:34:48 +02:00
|
|
|
|
|
|
|
after_deploy:
|
|
|
|
- if [[ "$BUILD_INSTALLER" == 'yes' && "$TRAVIS_EVENT_TYPE" == 'cron' ]]; then ./script/bintrayupdate.sh; fi
|
2018-06-25 21:57:30 +02:00
|
|
|
|
|
|
|
doctr:
|
|
|
|
build-tags: True
|
|
|
|
deploy-repo: streamlink/streamlink.github.io
|
|
|
|
key-path: doctr_deploy_key.enc
|
|
|
|
require-master: True
|