Skip to content

Commit 22a197e

Browse files
authored
Properly replace toolchain in PlatformIO CI script (#7580)
1 parent e636a65 commit 22a197e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: tests/platformio.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ function install_platformio()
1010
platformio platform install "https://github.com/platformio/platform-espressif8266.git"
1111
# Overwrite toolchain with this PR's toolset. Probably better way to do this
1212
( cd $TRAVIS_BUILD_DIR/tools && python3 get.py -q )
13-
mv ~/.platformio/packages/toolchain-xtensa/package.json .save
14-
rm -rf ~/.platformio/packages/toolchain-xtensa
15-
mv $TRAVIS_BUILD_DIR/tools/xtensa-lx106-elf ~/.platformio/packages/toolchain-xtensa
16-
mv .save ~/.platformio/packages/toolchain-xtensa/package.json
13+
mv $TRAVIS_BUILD_DIR/tools/xtensa-lx106-elf ~/.platformio/packages/toolchain-xtensa-latest
14+
mv ~/.platformio/packages/toolchain-xtensa/package.json ~/.platformio/packages/toolchain-xtensa/.piopm ~/.platformio/packages/toolchain-xtensa-latest/
1715
python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/espressif8266/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoespressif8266']['version'] = '*'; del data['packages']['framework-arduinoespressif8266']['owner'];fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
1816
ln -sf $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif8266
1917
# Install dependencies:

0 commit comments

Comments
 (0)