Skip to content

Commit

Permalink
ci: releases
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckeogh committed Apr 19, 2019
1 parent 65fbb64 commit 26426a1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,35 @@ env: TARGET_BUILD=thumbv7em-none-eabi

stages:
- stylecheck
- compile
- build

addons:
apt:
packages:
- binutils-arm-none-eabi

jobs:
include:
- stage: stylecheck
script:
- rustup component add rustfmt
- cargo fmt --all -- --check
- stage: compile
- stage: build
script:
- rustup target add $TARGET_BUILD
- cargo build --release --target $TARGET_BUILD --all
- arm-none-eabi-objcopy -SO binary target/$TARGET_BUILD/release/controller target/$TARGET_BUILD/release/controller.bin
- arm-none-eabi-objcopy -SO binary target/$TARGET_BUILD/release/receiver target/$TARGET_BUILD/release/receiver.bin

deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file:
- "target/$TARGET_BUILD/release/controller.bin"
- "target/$TARGET_BUILD/release/receiver.bin"
skip_cleanup: true
on:
tags: true

notifications:
email:
Expand Down

0 comments on commit 26426a1

Please sign in to comment.