-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
151 lines (151 loc) · 4.26 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
matrix:
include:
- language: python
python:
- 2.7
dist: trusty
install:
- "pip install -r requirements.txt"
script:
- cd hulusubs_dl
- python __main__.py --version
- cd ..
deploy:
- provider: pypi
edge:
branch: v1.8.45
username: xonshiz
password: $PYPI_TOKEN
distributions: "sdist bdist_wheel"
on:
branch: master
notifications:
email:
- language: python
python:
- 3.5
dist: trusty
install:
- "pip install -r requirements.txt"
script:
- cd hulusubs_dl
- python __main__.py --version
- cd ..
notifications:
email:
- os: linux
language: python
python:
- 3.8
dist: xenial
before_install:
- "pip install --upgrade pip"
install:
- "python --version"
- "pip install requests"
- "pip install pyinstaller"
script:
- cd hulusubs_dl
- python __main__.py --version
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "hulusubs_dl_linux"
- ls
- ls "dist"
- cd ..
notifications:
email:
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
deploy:
- provider: releases
tag_name: $TRAVIS_TAG
overwrite: true
api_key: $GITHUB_TOKEN
name: "Hulusubs_dl"
file: "hulusubs_dl/dist/hulusubs_dl_linux"
skip_cleanup: true
draft: false
on:
branch: master
- os: windows
language: sh
python: "3.8"
before_install:
- choco install python --version 3.8.0
- python --version
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
install:
- "pip install -r requirements.txt"
- "pip install pyinstaller"
script:
- cd hulusubs_dl
- python __main__.py --version
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "hulusubs_dl.exe"
- cd dist
- dir -s
- cd ..
- cd ..
notifications:
email:
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
deploy:
- provider: releases
tag_name: $TRAVIS_TAG
overwrite: true
api_key: $GITHUB_TOKEN
name: "Hulusubs_dl"
file: "hulusubs_dl/dist/hulusubs_dl.exe"
skip_cleanup: true
draft: false
on:
branch: master
- os: osx
language: sh
python: "3.8"
before_install:
- python3 --version
- python3 -m pip install --upgrade pip
install:
- "pip install -r requirements.txt"
- "pip install pyinstaller"
script:
- cd hulusubs_dl
- python3 __main__.py --version
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "hulusubs_dl_osx"
- ls
- ls "dist"
- export huluVersion=`cat version.txt`
- cd ..
notifications:
email:
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
deploy:
- provider: releases
tag_name: $TRAVIS_TAG
overwrite: true
api_key: $GITHUB_TOKEN
name: "Hulusubs_dl"
file: "hulusubs_dl/dist/hulusubs_dl_osx"
skip_cleanup: true
draft: false
on:
branch: master