-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
129 lines (129 loc) · 3.83 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
matrix:
include:
- language: python
python:
- 3.6
dist: trusty
before_install:
- "pip install --upgrade pip"
- "pip install --upgrade setuptools"
install:
- "pip install -r requirements.txt"
script:
- python cli.py --version
deploy:
- provider: pypi
edge:
branch: v1.8.45
username: __token__
password: $PYPI_TOKEN
distributions: "sdist bdist_wheel"
on:
branch: master
notifications:
email:
- os: linux
language: python
python:
- 3.8
dist: xenial
before_install:
- "pip install --upgrade pip"
- "pip install --upgrade setuptools"
install:
- "python --version"
- "pip install -r requirements.txt"
- "pip uninstall -y enum34"
- "pip install pyinstaller"
script:
- python cli.py --version
- pyinstaller --onefile --hidden-import=queue "cli.py" -n "comic_dl_linux"
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: "Comic_dl"
file: "dist/comic_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 uninstall -y enum34"
- "pip install pyinstaller"
script:
- python cli.py --version
- pyinstaller --onefile --hidden-import=queue "cli.py" -n "comic_dl.exe"
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: "Comic_dl"
file: "dist/comic_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 uninstall -y enum34"
- "pip install -Iv pyinstaller==4.3"
script:
- python3 cli.py --version
- pyinstaller --onefile --hidden-import=queue "cli.py" -n "comic_dl_osx"
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: "Comic_dl"
file: "dist/comic_dl_osx"
skip_cleanup: true
draft: false
on:
branch: master