forked from platformio/platformio-core
Disable project auto-clean while building/uploading firmware // Resolve #255
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
Release History
|
Release History
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
2.2.2 (2015-??-??)
|
||||||
|
------------------
|
||||||
|
|
||||||
|
* Disable project auto-clean while building/uploading firmware using
|
||||||
|
`platformio run --disable-auto-clean <http://docs.platformio.org/en/latest/userguide/cmd_run.html#cmdoption--disable-auto-clean>`_ option
|
||||||
|
(`issue #255 <https://github.com/platformio/platformio/issues/255>`_)
|
||||||
|
|
||||||
2.2.1 (2015-07-17)
|
2.2.1 (2015-07-17)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
@@ -62,6 +62,12 @@ There 3 levels of verbosity:
|
|||||||
|
|
||||||
By default, verbosity level is set to 3 (maximum information).
|
By default, verbosity level is set to 3 (maximum information).
|
||||||
|
|
||||||
|
.. option::
|
||||||
|
--disable-auto-clean
|
||||||
|
|
||||||
|
Disable auto-clean of :ref:`projectconf_pio_envs_dir` when :ref:`projectconf`
|
||||||
|
or :ref:`projectconf_pio_src_dir` (project structure) have been modified.
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
VERSION = (2, 2, 1)
|
VERSION = (2, 2, "2.dev0")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@@ -26,9 +26,10 @@ from platformio.platforms.base import PlatformFactory
|
|||||||
type=click.Path(exists=True, file_okay=False, dir_okay=True,
|
type=click.Path(exists=True, file_okay=False, dir_okay=True,
|
||||||
writable=True, resolve_path=True))
|
writable=True, resolve_path=True))
|
||||||
@click.option("--verbose", "-v", count=True, default=3)
|
@click.option("--verbose", "-v", count=True, default=3)
|
||||||
|
@click.option("--disable-auto-clean", is_flag=True)
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def cli(ctx, environment, target, upload_port, # pylint: disable=R0913,R0914
|
def cli(ctx, environment, target, upload_port, # pylint: disable=R0913,R0914
|
||||||
project_dir, verbose):
|
project_dir, verbose, disable_auto_clean):
|
||||||
with util.cd(project_dir):
|
with util.cd(project_dir):
|
||||||
config = util.get_project_config()
|
config = util.get_project_config()
|
||||||
|
|
||||||
@@ -40,6 +41,7 @@ def cli(ctx, environment, target, upload_port, # pylint: disable=R0913,R0914
|
|||||||
raise exception.UnknownEnvNames(", ".join(unknown))
|
raise exception.UnknownEnvNames(", ".join(unknown))
|
||||||
|
|
||||||
# clean obsolete .pioenvs dir
|
# clean obsolete .pioenvs dir
|
||||||
|
if not disable_auto_clean:
|
||||||
_clean_pioenvs_dir()
|
_clean_pioenvs_dir()
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
Reference in New Issue
Block a user