use release env in ci build

This commit is contained in:
2018-10-07 13:20:24 +02:00
parent afd13ca661
commit 6fc5908761
2 changed files with 5 additions and 5 deletions

View File

@@ -22,8 +22,8 @@ firmware:
script: script:
- mv data/example.config.json data/config.json - mv data/example.config.json data/config.json
- pio run -t clean - pio run -t clean
- pio run - pio run -e release
- pio run -t buildfs - pio run -e release -t buildfs
release: release:
stage: release stage: release
@@ -33,8 +33,8 @@ release:
script: script:
- pip install awscli - pip install awscli
- mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG} - mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/build/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG} - mv .pioenvs/release/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/build/spiffs.bin ${PROJECT_NAME}/${CI_COMMIT_TAG} - mv .pioenvs/release/spiffs.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin" - aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
artifacts: artifacts:
paths: paths:

View File

@@ -65,7 +65,7 @@ framework = ${common.framework}
build_flags = -Wl,-Teagle.flash.4m1m.ld build_flags = -Wl,-Teagle.flash.4m1m.ld
-DSPROCKET_PRINT=0 -DSPROCKET_PRINT=0
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
https://gitlab.com/wirelos/sprocket-core.git#master https://gitlab.com/wirelos/sprocket-core.git#develop
[env:nodemcu] [env:nodemcu]