diff --git a/HISTORY.rst b/HISTORY.rst index b8b78b8a..c8f53100 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,7 +9,7 @@ PlatformIO 2.0 * Improved code builder for parallel builds (up to 4 times faster than before) * Generate `.travis.yml `__ - CI config for embedded projects by default + CI and `.gitignore` files for embedded projects by default (`issue #354 `_) * Removed prompt with "auto-uploading" from `platformio init `__ command and added ``--enable-auto-uploading`` option diff --git a/platformio/__init__.py b/platformio/__init__.py index ba9f8ca5..54dfffdc 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -VERSION = (2, 5, "0.dev1") +VERSION = (2, 5, "0.dev2") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/commands/init.py b/platformio/commands/init.py index c1f64055..b7f7200b 100644 --- a/platformio/commands/init.py +++ b/platformio/commands/init.py @@ -85,6 +85,7 @@ def cli(ctx, project_dir, board, ide, # pylint: disable=R0913 init_lib_readme(lib_dir) init_ci_conf(project_dir) + init_cvs_ignore(project_dir) if not isfile(project_file): copyfile(join(get_source_dir(), "projectconftpl.ini"), @@ -249,3 +250,10 @@ install: script: - platformio ci --board=TYPE_1 --board=TYPE_2 --board=TYPE_N """) + + +def init_cvs_ignore(project_dir): + if isfile(join(project_dir, ".gitignore")): + return + with open(join(project_dir, ".gitignore"), "w") as f: + f.write(".pioevs")