Skip to content

Commit

Permalink
Merge pull request #161 from LaCoolCo/enhancement/travis-deploy-s3
Browse files Browse the repository at this point in the history
Deploy build artifacts to S3
  • Loading branch information
3rwww1 authored Jun 28, 2018
2 parents 0ea852c + 820ac8e commit b373cbd
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,51 @@
language: python
python:
- "2.7"

- '2.7'
sudo: false

install:
- pip install -U platformio
- platformio update

- pip install -U platformio
- platformio update
script:
- platformio run -t clean
- patch/patch.sh
- export RELEASE_VERSION=$(git describe --tags --always)
- platformio run
- export FIRMWARE=.pioenvs/prod/LaCOOLBoard-${RELEASE_VERSION}.bin
- mv .pioenvs/prod/firmware.bin ${FIRMWARE}
- platformio run -t clean
- patch/patch.sh
- export RELEASE_VERSION=$(git describe --tags --always)
- platformio run
- export FIRMWARE=LaCOOLBoard-${RELEASE_VERSION}.bin
- mkdir artifacts
- cp .pioenvs/prod/firmware.bin ${FIRMWARE}
- cp .pioenvs/minified/firmware.bin artifacts/minified-${RELEASE_VERSION}.bin
- cp .pioenvs/prod/firmware.bin artifacts/prod-${RELEASE_VERSION}.bin
- cp .pioenvs/heap/firmware.bin artifacts/heap-${RELEASE_VERSION}.bin
- cp .pioenvs/debug/firmware.bin artifacts/debug-${RELEASE_VERSION}.bin
- cp .pioenvs/trace/firmware.bin artifacts/trace-${RELEASE_VERSION}.bin
notifications:
email:
on_success: build@lacool.co
on_failure: build@lacool.co
recipients: build@lacool.co
slack:
secure: TxKrv7J+fHDe98JOmzKve1PLvmuTdK4/wzSKQx7vOIz4tyje+CQuFJMPOOvjkaJoS8jT+s0FR25q8r5QF1mFpIofBPvvLu/PL3KOaPDs2lE4HXHoQi4vZiCQnDJbpQhk4dxwLHqbQ/OHwZOm0qmVusB9EJjf81iTxr2jA09/neEtPE06Yn3FIU+XaxJYbI7VeN5SgOeOCroo931BvYjyEcUhMUuqVHPI5KuBkNJ1bc3fAQyg6KGi5jFs18Fugd6OZQGMV8aJf4l9weyTUXL60x9i6AUOoCSNb+pMAQYfG/bn7PWhQgsV8q+hB5cNESRpklNA6c4uLDWsdCb1/gI0NtNDdwg8oEmRpRJXf5W9/cCzWZFHrruFJm12wjNaSAy63a8bOF15Ve79ngGrUGHwSDjXA5JSeYrtvNVM9e4IWfmjcNK2JeXnhhnicAAPXPmxLLlyTtTsDWcmYy3b7rWcRmwzmRW2NCoQGctw2VndXOqk5ojl7iZSdNYI7JkeX9cLU4YfJPbnb2qviuENrvl14D/2hv4jozFGTd/6A8Z6Xs/qQxknfKrbS0BN4haA9X6hRPO0gs5qfMh4UrVM/wJ7N4tcWR/F4C6tkxdmH+tfAVTYLAnuhZRfqFhqxI5Ni50iWNYzFeweH3jZ/2CgYTeyj3Tj/BN27ityKjL76mZEzMc=
deploy:
skip_cleanup: true
provider: releases
- provider: releases
name: La COOL Board ${RELEASE_VERSION}
file_glob: true
file: "${FIRMWARE}"
api_key:
secure: rKQbtn2MgGMKqlc85hng89PcjDoU2H+lsIcXXTb56inOWUzINhtR+Uxjvixk9U5yNjX/KUYLzcZYWyxvybv0qlW7ZRH5LJsK0F/RFMp4t7u7IG/OCHjpixbLM3hlWynrraX1XULPbvM3UDpnGa8yzFt0oLk1pBaU85G91UAwRQOb5ZE/LcG+P5ZxrQLWzVxW8ezE6d1201/gDjeIyTlfRnL26k1rtkk+znVtCtBncuPRxfNGJyBX4Es2XzOgx8YQQAnQFp0eHYYsetOn/d3h3AbClNI8mG6p6sy3k/z1EhO3CCWypfEWuZ2wwopMDEA//Py+BoIZ4BLws0LwVbjI+dznfcexsXtCIAWHxEqiqqLQsQFxxk7L1hFa1m4aQjS6AGpy3rvJx+uQOPrcdP+749wjsxzIfp0eQgi4TcASI2AVtJPw/x0MyPerrlusf7mOhSdz+WC+M4AjSUoYGQzejFaWNZbDkDgYebrxqAcTHiHc2PVSjbLtAtM9FTtjRoMUF7Ys2jsHDpcfIGzT6pBFUHh3MotQAfB9oH/OvsNu5EB56lLdHsSl9sHfZNz5wLNbXcqW1sW9JlvFnDC8/t60WXv+lPBn1QI6DBA8kCTuO3HRRiFwVxTSe4T90Pep56sg+ALwBO8obER3JCNIGSh61BxM/TIV1s2oRYAp6wpxiOs=
name: La COOL Board ${RELEASE_VERSION}
file_glob: true
on:
repo: LaCoolCo/LaCOOLBoard
tags: true
- provider: s3
skip_cleanup: true
access_key_id: "${AWS_ACCESS_KEY_ID}"
secret_access_key: "${AWS_SECRET_ACCESS_KEY}"
region: "${AWS_DEFAULT_REGION}"
bucket: "cool-firmware-releases"
local_dir: "artifacts"
upload-dir: "${TRAVIS_BRANCH}"
on:
all_branches: true
repo: LaCoolCo/LaCOOLBoard
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- secure: GXJ4wvpvqJr/mEJHgxQxDOxWQx4x8J0gg5oODiXk9bcqk574JxqupgOGTOEfgQ+u8jy6Ic0TfeQl2EEUvNEfjoudgalsFHVlZzi5n0gbOeuqm/+cz4NJlAM+WPecNbv+iihQ2lAwCxOcBIOI+K0tv2nQAA0B0salcTRvcRjLIuAP6t7HsGFxU6RSOeLPEZcDLtAJCs7tHY0T3KcACtbvI8eBc1zBKVdcxXXRTamU3JiFBM8uU94px4vHOc+5VatAUsH3VxKv1/jMLH7pBXaW7kt80MdzSbFKBQcwTtTVjwAku5Eoz44nWErsvB3fovVjs5JE7gF+noQh1mXpg5YY1FIa6IvzHP2EYrC79Ne7kru6N+zWnvfFSuFevjuwfh0CnyGl2qhjvIcRg2dD4K8YMzuQtj6TFkClXhHSzxhhpeTcz/Qgij83NPFOM4XDhmBEe/ViyJqrHEOnjOMKrkYgXMOW28mE2zHaCaFXRIyaU7HAZa5/6srSCdSSQ4BysFmJ0D8R7STkwQfipkSt2Zc99T55qeMYgpRNv4rYhPRNIaDPxmvVtcKbkpXrL1w6QtBdT/vO8FUYyylKcxP2HAplRTEOc3tR/c347rNsK2GC2ZOQN7VZg5FhIGdEnEoQdZnI0+YdQGCm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