Skip to content

Commit 20b620d

Browse files
Use PR's toolchain in platformio build
1 parent 7a20b53 commit 20b620d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/platformio.sh

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ function install_platformio()
88
{
99
pip3 install --user -U https://github.com/platformio/platformio/archive/develop.zip
1010
platformio platform install "https://github.com/platformio/platform-espressif8266.git"
11+
# Overwrite toolchain with this PR's toolset. Probably better way to do this
12+
( cd $TRAVIS_BUILD_DIR/tools && python3 get.py )
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
1117
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'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
1218
ln -sf $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif8266
1319
# Install dependencies:

0 commit comments

Comments
 (0)