mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
* do better with loop cleanup * changelog * remove redundant line * Do this a bit better than the initial pass * Improve windows support Make some other things coroutines to work with improved design * Wish we'd have done this right from the start... * Update deps surrounding this - see bpo-23057 - neccessary for windows users - nice for consistent support channel info / feature availability * dep issue * Fix tests * duplication plugin py version * actually handle this * Reconfigure some checks with codeclimate, disable pylint for now * style * Is my exasperation showing yet? * handle some stupid stuff * meh * dep changelog
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
dist: xenial
|
|
language: python
|
|
cache: pip
|
|
notifications:
|
|
email: false
|
|
|
|
python:
|
|
- 3.8.1
|
|
env:
|
|
global:
|
|
- PIPENV_IGNORE_VIRTUALENVS=1
|
|
|
|
install:
|
|
- pip install --upgrade pip tox
|
|
|
|
script:
|
|
- tox
|
|
|
|
jobs:
|
|
include:
|
|
- env: TOXENV=py
|
|
- env: TOXENV=docs
|
|
- env: TOXENV=style
|
|
- env: TOXENV=postgres
|
|
services: postgresql
|
|
addons:
|
|
postgresql: "10"
|
|
before_script:
|
|
- psql -c 'create database red_db;' -U postgres
|
|
# These jobs only occur on tag creation if the prior ones succeed
|
|
- stage: PyPi Deployment
|
|
if: tag IS present
|
|
python: 3.8.1
|
|
env:
|
|
- DEPLOYING=true
|
|
- TOXENV=py36
|
|
deploy:
|
|
- provider: pypi
|
|
distributions: sdist bdist_wheel
|
|
user: Red-DiscordBot
|
|
password:
|
|
secure: Ty9vYnd/wCuQkVC/OsS4E2jT9LVDVfzsFrQc4U2hMYcTJnYbl/3omyObdCWCOBC40vUDkVHAQU8ULHzoCA+2KX9Ds/7/P5zCumAA0uJRR9Smw7OlRzSMxJI+/lGq4CwXKzxDZKuo5rsxXEbW5qmYjtO8Mk6KuLkvieb1vyr2DcqWEFzg/7TZNDfD1oP8et8ITQ26lLP1dtQx/jlAiIBzgK9wziuwj1Divb9A///VsGz43N8maZ+jfsDjYqrfUVWTy3ar7JPUplletenYCR1PmQ5C46XfV0kitKd1aITJ48YPAKyYgKy8AIT+Uz1JArTnqdzLSFRNELS57qS00lzgllbteCyWQ8Uzy0Zpxb/5DDH8/mL1n0MyJrF8qjZd2hLNAXg3z/k9bGXeiMLGwoxRlGXkL2XpiVgI93UKKyVyooGNMgPTc/QdSc7krjAWcOtX/HgLR34jxeLPFEdzJNAFIimfDD8N+XTFcNBw6EvOYm/n5MXkckNoX/G+ThNobHZ7VKSASltZ9zBRAJ2dDh35G3CYmVEk33U77RKbL9le/Za9QVBcAO8i6rqVGYkdO7thHHKHc/1CB1jNnjsFSDt0bURtNfAqfwKCurQC8487zbEzT+2fog3Wygv7g3cklaRg4guY8UjZuFWStYGqbroTsOCd9ATNqeO5B13pNhllSzU=
|
|
skip_cleanup: true
|
|
on:
|
|
repo: Cog-Creators/Red-DiscordBot
|
|
tags: true
|
|
- stage: Crowdin Deployment
|
|
if: tag IS present
|
|
python: 3.8.1
|
|
env:
|
|
- DEPLOYING=true
|
|
- TOXENV=py36
|
|
before_deploy:
|
|
- curl https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add -
|
|
- echo "deb https://artifacts.crowdin.com/repo/deb/ /" | sudo tee -a /etc/apt/sources.list
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -y crowdin
|
|
- pip install redgettext==3.1
|
|
deploy:
|
|
- provider: script
|
|
script: make upload_translations
|
|
skip_cleanup: true
|
|
on:
|
|
repo: Cog-Creators/Red-DiscordBot
|
|
tags: true
|