Files
sprocket-device-illucat/.gitlab-ci.yml
2018-10-06 16:42:22 +02:00

41 lines
777 B
YAML

image: python:2.7-stretch
variables:
S3_BUCKET_NAME: "wirelos"
stages:
- build
- test
- deploy
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .pioenvs/
firmware:
stage: build
image: python:2.7-stretch
before_script:
- pip install -U platformio
script:
- mv data/example.config.json data/config.json
- pio run -t clean
- pio run
- pio run -t buildfs
release:
stage: deploy
only:
- master
image: python:latest
script:
- pip install awscli
- mkdir release
- mv .pioenvs/build/firmware.bin release
- mv .pioenvs/build/spiffs.bin release
- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
artifacts:
paths:
- release