#NEWLINE# def init_ci_conf( project_dir ) : #NEWLINE# #INDENT# if isfile ( join ( f , '.travis.yml' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# with open ( join ( project_dir , '.travis.yml' ) , 'w' ) as f : #NEWLINE# #INDENT# f . write ( '# Continuous Integration (CI) is the practice, in software\n# engineering, of merging all developer working copies with a shared mainline\n# several times a day < http://docs.platformio.org/en/latest/ci/index.html >\n#\n# Documentation:\n#\n# * Travis CI Embedded Builds with PlatformIO\n#   < https://docs.travis-ci.com/user/integration/platformio/ >\n#\n# * PlatformIO integration with Travis CI\n#   < http://docs.platformio.org/en/latest/ci/travis.html >\n#\n# * User Guide for `platformio ci` command\n#   < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >\n#\n#\n# Please choice one of the following templates (proposed below) and uncomment\n# it (remove "# " before each line) or use own configuration according to the\n# Travis CI documentation (see above).\n#\n\n\n#\n# Template #1: General project. Test it using existing `platformio.ini`.\n#\n\n# language: python\n# python:\n#     - "2.7"\n#\n# sudo: false\n# cache:\n#     directories:\n#         - "~/.platformio"\n#\n# install:\n#     - pip install -U platformio\n#\n# script:\n#     - platformio run\n\n\n#\n# Template #2: The project is intended to by used as a library with examples\n#\n\n# language: python\n# python:\n#     - "2.7"\n#\n# sudo: false\n# cache:\n#     directories:\n#         - "~/.platformio"\n#\n# env:\n#     - PLATFORMIO_CI_SRC=path/to/test/file.c\n#     - PLATFORMIO_CI_SRC=examples/file.ino\n#     - PLATFORMIO_CI_SRC=path/to/test/directory\n#\n# install:\n#     - pip install -U platformio\n#\n# script:\n#     - platformio ci --lib="." --board=TYPE_1 --board=TYPE_2 --board=TYPE_N\n' )