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 - pip install -U platformio
- platformio update - platformio update
script: script:
- platformio ci --project-conf platformio.ini --board=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 .pioenvs/lolin_d32_pro/ # - 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 .pioenvs/lolin_d32_pro/ # - cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/default.bin build/.pio/build/lolin_d32_pro/
variables: {PLATFORMIO_CI_SRC: "src"} variables: {PLATFORMIO_CI_SRC: "src"}
artifacts: artifacts:
paths: paths:
- .pio/build/lolin_d32_pro/*.bin - build/.pio/build/lolin_d32_pro/*.bin
deploy: deploy:
stage: deploy stage: deploy
@ -30,7 +30,7 @@ deploy:
- echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts - echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: 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: dependencies:
- build - build
when: manual when: manual

Loading…
Cancel
Save