forked from streamlink/streamlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (61 loc) · 2.91 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: python
matrix:
include:
- python: '2.7'
- python: '3.3'
- python: '3.4'
- python: '3.5'
env: BUILD_DOCS=yes BUILD_INSTALLER=yes STREAMLINK_INSTALLER_DIST_DIR=$TRAVIS_BUILD_DIR/dist/nsis
- python: '3.6'
- python: '3.7-dev'
allow_failures:
- python: '2.6'
- python: '3.7-dev'
before_install:
- pip install --disable-pip-version-check --upgrade pip
- pip install -r dev-requirements.txt
- pip install pycountry
- pip install -r docs-requirements.txt
install:
- python setup.py install
script:
- python -m pytest tests/
- coverage run setup.py test
# test building the docs
- if [[ $BUILD_DOCS == 'yes' ]]; then make --directory=docs html; fi
- if [[ $BUILD_INSTALLER == 'yes' ]]; then ./script/makeinstaller.sh; fi
after_success:
# push the docs only if the build was successful
- bash script/pushdocs.sh
- codecov
addons:
apt:
packages:
- nsis
deploy:
- 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
- provider: script
script: python script/github_releases.py
skip_cleanup: true
on:
tags: true
condition: $BUILD_INSTALLER = yes
- provider: s3
skip_cleanup: true
local_dir: $STREAMLINK_INSTALLER_DIST_DIR
bucket: streamlink-builds
upload-dir: nightly/windows
on:
branch: master
condition: $BUILD_INSTALLER = yes
secret_access_key:
secure: 3abBcpXNxhWDJyznMA/wDmQ+lUSaJVwi62aXHjFxA7Zrz/CidbHmXkNedViWTOivMyVcM4Ypej4JD1V74Uo78GN09TICRbSc9fTF08O8Hu+hK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