forked from platformio/platformio-core
Use global library storage for CI
This commit is contained in:
@ -83,7 +83,7 @@ Install dependent library using :ref:`librarymanager`
|
|||||||
- sudo pip install -U platformio
|
- sudo pip install -U platformio
|
||||||
|
|
||||||
# OneWire Library with ID=1 http://platformio.org/lib/show/1/OneWire
|
# OneWire Library with ID=1 http://platformio.org/lib/show/1/OneWire
|
||||||
- platformio lib install 1
|
- platformio lib -g install 1
|
||||||
|
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
@ -159,7 +159,7 @@ Examples
|
|||||||
#
|
#
|
||||||
# http://platformio.org/lib/show/416/TinyGPS
|
# http://platformio.org/lib/show/416/TinyGPS
|
||||||
# http://platformio.org/lib/show/417/SPI4Teensy3
|
# http://platformio.org/lib/show/417/SPI4Teensy3
|
||||||
- platformio lib install 416 417
|
- platformio lib -g install 416 417
|
||||||
|
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
|
@ -106,7 +106,7 @@ Install dependent library using :ref:`librarymanager`
|
|||||||
# Libraries from PlatformIO Library Registry:
|
# Libraries from PlatformIO Library Registry:
|
||||||
#
|
#
|
||||||
# http://platformio.org/lib/show/1/OneWire
|
# http://platformio.org/lib/show/1/OneWire
|
||||||
- platformio lib install 1
|
- platformio lib -g install 1
|
||||||
|
|
||||||
Manually download dependent library and include in build process via ``--lib`` option
|
Manually download dependent library and include in build process via ``--lib`` option
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@ -189,7 +189,7 @@ Examples
|
|||||||
#
|
#
|
||||||
# http://platformio.org/lib/show/416/TinyGPS
|
# http://platformio.org/lib/show/416/TinyGPS
|
||||||
# http://platformio.org/lib/show/417/SPI4Teensy3
|
# http://platformio.org/lib/show/417/SPI4Teensy3
|
||||||
- platformio lib install 416 417
|
- platformio lib -g install 416 417
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- platformio ci --board=uno --board=teensy31 --board=due --lib="."
|
- platformio ci --board=uno --board=teensy31 --board=due --lib="."
|
||||||
@ -260,7 +260,7 @@ Examples
|
|||||||
# Libraries from PlatformIO Library Registry:
|
# Libraries from PlatformIO Library Registry:
|
||||||
#
|
#
|
||||||
# http://platformio.org/lib/show/416/TinyGPS
|
# http://platformio.org/lib/show/416/TinyGPS
|
||||||
- platformio lib install 416 421 422
|
- platformio lib -g install 416 421 422
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- platformio ci --lib="." --board=uno --board=teensy20pp $PLATFORMIO_CI_EXTRA_ARGS
|
- platformio ci --lib="." --board=uno --board=teensy20pp $PLATFORMIO_CI_EXTRA_ARGS
|
||||||
|
@ -53,6 +53,13 @@ def cli(ctx, **options):
|
|||||||
storage_dir = join(util.get_home_dir(), "lib")
|
storage_dir = join(util.get_home_dir(), "lib")
|
||||||
elif util.is_platformio_project():
|
elif util.is_platformio_project():
|
||||||
storage_dir = util.get_projectlibdeps_dir()
|
storage_dir = util.get_projectlibdeps_dir()
|
||||||
|
elif util.is_ci():
|
||||||
|
storage_dir = join(util.get_home_dir(), "lib")
|
||||||
|
click.secho(
|
||||||
|
"Warning! Global library storage is used automatically. "
|
||||||
|
"Please use `platformio lib --global %s` command to remove "
|
||||||
|
"this warning." % ctx.invoked_subcommand,
|
||||||
|
fg="yellow")
|
||||||
|
|
||||||
if not storage_dir and not util.is_platformio_project():
|
if not storage_dir and not util.is_platformio_project():
|
||||||
raise exception.NotGlobalLibDir(util.get_project_dir(),
|
raise exception.NotGlobalLibDir(util.get_project_dir(),
|
||||||
|
Reference in New Issue
Block a user