mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[CI] Added support for conditional builds and env vars (#1320)
* Changed travis deploy scheme * Fixed indentation * Okay NOW I did fix indentation (hopefully) * Conditional deployment tests * Fixed a 7:35 AM typo * Fixed builds not building.
This commit is contained in:
3
setup.py
3
setup.py
@@ -8,6 +8,7 @@ import sys
|
||||
from setuptools import find_packages
|
||||
|
||||
IS_TRAVIS = 'TRAVIS' in os.environ
|
||||
IS_DEPLOYING = 'DEPLOYING' in os.environ
|
||||
|
||||
dep_links = ['https://github.com/Rapptz/discord.py/tarball/rewrite#egg=discord.py-1.0']
|
||||
if IS_TRAVIS:
|
||||
@@ -22,7 +23,7 @@ def get_package_list():
|
||||
def get_requirements():
|
||||
with open('requirements.txt') as f:
|
||||
requirements = f.read().splitlines()
|
||||
if IS_TRAVIS:
|
||||
if IS_TRAVIS and not IS_DEPLOYING:
|
||||
requirements.remove('git+https://github.com/Rapptz/discord.py.git@rewrite#egg=discord.py[voice]')
|
||||
else:
|
||||
requirements.append('discord.py>=1.0.0a0') # Because RTD
|
||||
|
||||
Reference in New Issue
Block a user