130 lines
3.8 KiB
YAML
130 lines
3.8 KiB
YAML
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:
|
|
- xonshiz@gmail.com
|
|
- 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:
|
|
- xonshiz@gmail.com
|
|
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:
|
|
- xonshiz@gmail.com
|
|
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:
|
|
- xonshiz@gmail.com
|
|
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
|