PlatformIO Community

Help with travis.yml failed build

This is my .travis.yml file.

    sudo: false
    language: python
    python:
        - "2.7"
    cache:
        directories:
        - "~/.platformio"

    install:

        - pip install -U platformio
        - platformio update
        - platformio lib -g install https://github.com/miguelbalboa/rfid
        - platformio lib -g install https://github.com/bblanchon/ArduinoJson

    script: 
        - platformio ci --src="examples/Simple/Simple.ino" --lib="." --board=esp12e

    notifications:
      email:
        on_success: never
        on_failure: always

and then, this is the result.

platformio lib -g install https://github.com/bblanchon/ArduinoJson

platformio ci --src=“examples/Simple/Simple.ino” --lib="." --board=esp12e

Usage: platformio ci [OPTIONS] [SRC]…

Try ‘platformio ci -h’ for help.
Error: no such option: --src

The command “platformio ci --src=“examples/Simple/Simple.ino” --lib=”." --board=esp12e" exited with 2.

cache.2

store build cache

any idea how to fix this ?
thanks.

You may have to change to 3.5+ and try again.

Tells you right there what’s wrong, there’s no --src flag in that version.

Check out the documentation at https://docs.platformio.org/en/latest/integration/ci/travis.html#using-cmd-ci-command and https://docs.platformio.org/en/latest/core/userguide/cmd_ci.html#cmd-ci.