esp32 soundboard project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.2 KiB

image: eclipse/platformio
before_script:
- sudo pip install -U PlatformIO
- platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage
build:
stage: build
script:
# - platformio lib -g install 1
# - platformio ci --board=esp32thing
- sed -i "s/^\(#define WIFI_SSID \).*/\1\"$WIFI_SSID\"/" src/soundboard.h
- sed -i "s/^\(#define WIFI_PASSWORD \).*/\1\"$WIFI_PASSWORD\"/" src/soundboard.h
- platformio run
- ln -s .pioenvs/esp32thing build
- cp /home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin build/
- cp /home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin build/
# to flash: esptool.py --before default_reset --after hard_reset --chip esp32 --port "/dev/ttyUSB0" --baud 115200 write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 "/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin" 0x8000 ".pioenvs/esp32thing/partitions.bin" 0xe000 "/home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin" 0x10000 .pioenvs/esp32thing/firmware.bin
artifacts:
expire_in: 2 weeks
paths:
- "build/*.bin"