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:
- mv data/example.config.json data/config.json
- pio run -t clean
- pio run
- pio run -t buildfs
- pio run -e release
- pio run -e release -t buildfs
release:
stage: release
@@ -33,8 +33,8 @@ release:
script:
- pip install awscli
- mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/build/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/build/spiffs.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/release/firmware.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"
artifacts:
paths:

View File

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