diff --git a/.travis.yml b/.travis.yml index 863bf6d965..c187c27123 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,11 +24,15 @@ jobs: - name: "Platformio (1)" stage: build script: $TRAVIS_BUILD_DIR/tests/platformio.sh + install: + - sudo apt-get install python3-pip python3-setuptools env: - BUILD_PARITY=even - name: "Platformio (2)" stage: build script: $TRAVIS_BUILD_DIR/tests/platformio.sh + install: + - sudo apt-get install python3-pip python3-setuptools env: - BUILD_PARITY=odd diff --git a/tests/platformio.sh b/tests/platformio.sh index bacd1704eb..4f1cbbb78c 100755 --- a/tests/platformio.sh +++ b/tests/platformio.sh @@ -6,13 +6,13 @@ source "$TRAVIS_BUILD_DIR"/tests/common.sh function install_platformio() { - pip install --user -U https://github.com/platformio/platformio/archive/develop.zip + pip3 install --user -U https://github.com/platformio/platformio/archive/develop.zip platformio platform install "https://github.com/platformio/platform-espressif8266.git#feature/stage" sed -i 's/https:\/\/github\.com\/esp8266\/Arduino\.git/*/' ~/.platformio/platforms/espressif8266/platform.json - ln -s $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif8266 + ln -sf $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif8266 # Install dependencies: # - esp8266/examples/ConfigFile - pio lib install "ArduinoJson@^6.11.0" + pio lib --global install "ArduinoJson@^6.11.0" } function build_sketches_with_platformio() diff --git a/tests/run_CI_locally.sh b/tests/run_CI_locally.sh index a370461f6a..c079c2a638 100755 --- a/tests/run_CI_locally.sh +++ b/tests/run_CI_locally.sh @@ -80,9 +80,6 @@ EOF test -z "$BUILD_TYPE" || break done -# use pip2 for python2 with python3 is around, platformio doesn't like it -cp tests/platformio.sh tests/platformio-custom.sh -sed -i 's,pip ,pip2 ,g' tests/platformio-custom.sh git submodule update --init @@ -117,11 +114,11 @@ elif [ "$BUILD_TYPE" = "build1_odd" ]; then BUILD_PARITY=odd tests/build1.sh elif [ "$BUILD_TYPE" = "platformio" ]; then - tests/platformio-custom.sh + tests/platformio.sh elif [ "$BUILD_TYPE" = "platformio_even" ]; then - BUILD_PARITY=even tests/platformio-custom.sh + BUILD_PARITY=even tests/platformio.sh elif [ "$BUILD_TYPE" = "platformio_odd" ]; then - BUILD_PARITY=odd tests/platformio-custom.sh + BUILD_PARITY=odd tests/platformio.sh elif [ "$BUILD_TYPE" = host ]; then tests/ci/host_test.sh