Browse Source

fix build path

ci-test
Hendrik Langer 5 years ago
parent
commit
cfc55364d1
  1. 10
      .gitlab-ci.yml

10
.gitlab-ci.yml

@ -9,13 +9,13 @@ build:
- pip install -U platformio
- platformio update
script:
- platformio ci --project-conf platformio.ini --board=lolin_d32_pro
# - cp ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin .pioenvs/lolin_d32_pro/
# - cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/default.bin .pioenvs/lolin_d32_pro/
- platformio ci --project-conf platformio.ini --board=lolin_d32_pro --build-dir build --keep-build-dir
# - cp ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin build/.pio/build/lolin_d32_pro/
# - cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/default.bin build/.pio/build/lolin_d32_pro/
variables: {PLATFORMIO_CI_SRC: "src"}
artifacts:
paths:
- .pio/build/lolin_d32_pro/*.bin
- build/.pio/build/lolin_d32_pro/*.bin
deploy:
stage: deploy
@ -30,7 +30,7 @@ deploy:
- echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- scp .pio/build/lolin_d32_pro/firmware.bin "${SSH_USER_HOST}:${DEPLOY_PATH}"
- scp build/.pio/build/lolin_d32_pro/firmware.bin "${SSH_USER_HOST}:${DEPLOY_PATH}"
dependencies:
- build
when: manual

Loading…
Cancel
Save