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 GitHub - bblanchon/ArduinoJson: 📟 JSON library for Arduino and embedded C++. Simple and efficient.

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 Travis CI — PlatformIO latest documentation and pio ci — PlatformIO latest documentation.