mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Core] Added --dry-run flag and Travis CI boot test
This should help testing the boot process right until login
This commit is contained in:
parent
6f068191f1
commit
c7284ffa2a
@ -6,6 +6,7 @@ install:
|
||||
script:
|
||||
- python -m compileall ./red.py
|
||||
- python -m compileall ./cogs
|
||||
- python ./red.py --no-prompt --no-cogs --dry-run
|
||||
cache: pip
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
@ -72,6 +72,11 @@ class Settings:
|
||||
action="store_true",
|
||||
help="Arguments passed and future edits to the "
|
||||
"settings will not be saved to disk")
|
||||
parser.add_argument("--dry-run",
|
||||
action="store_true",
|
||||
help="Makes Red quit with code 0 just before the "
|
||||
"login. This is useful for testing the boot "
|
||||
"process.")
|
||||
parser.add_argument("--debug",
|
||||
action="store_true",
|
||||
help="Enables debug mode")
|
||||
@ -92,6 +97,7 @@ class Settings:
|
||||
self._memory_only = args.memory_only
|
||||
self._no_cogs = args.no_cogs
|
||||
self.debug = args.debug
|
||||
self._dry_run = args.dry_run
|
||||
|
||||
self.save_settings()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user