Skip to content

Commit

Permalink
Clean up and prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
lthiery committed Jun 10, 2020
1 parent dfcd4b9 commit 43f8094
Show file tree
Hide file tree
Showing 10 changed files with 635 additions and 88 deletions.
68 changes: 68 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
language: rust
sudo: required
services: docker
cache: cargo

before_cache:
- rm -rf "$TRAVIS_HOME/.cargo/registry/src"

DEPLOY_TO_GITHUB: &DEPLOY_TO_GITHUB
before_deploy:
- git config --local user.name "Helium CI"
- git config --local user.email "[email protected]"
- name="virtual-lorawan-device-$TRAVIS_TAG-$TARGET"
- mkdir $name
- cp target/$TARGET/release/virtual-lorawan-device$EXE $name/
- cp LICENSE $name/
- cp README.md $name/
- zip -r $name.zip $name
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: virtual-lorawan-device-$TRAVIS_TAG-$TARGET.zip
skip_cleanup: true
on:
branch: master
tags: true

matrix:
include:
- name: Linux Binary
env: TARGET=x86_64-unknown-linux-gnu
rust: stable
before_script:
- rustup target add $TARGET
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo fmt -- --check
- cargo build --release --target $TARGET --locked
- cargo clippy -- --deny=clippy::all
<<: *DEPLOY_TO_GITHUB

- name: macOS Binary
env: MACOSX_DEPLOYMENT_TARGET=10.7 TARGET=x86_64-apple-darwin
os: osx
rust: stable
before_script:
- rustup target add $TARGET
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo fmt -- --check
- cargo build --release --target $TARGET --locked
- cargo clippy -- --deny=clippy::all
<<: *DEPLOY_TO_GITHUB

- name: Windows Binary
env: TARGET=x86_64-pc-windows-gnu EXE=.exe
rust: stable
before_script:
- rustup target add $TARGET
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo fmt -- --check
- RUSTFLAGS="-C linker=x86_64-w64-mingw32-gcc" cargo build --release --target $TARGET --locked
- cargo clippy -- --deny=clippy::all
<<: *DEPLOY_TO_GITHUB
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--
M.m.p (YYYY-MM-DD)
==================
Add a summary of this release.
**BREAKING CHANGES**:
* Some change which breaks API or ABI compatiblity with.
Feature enhancements:
* [Link to github PR]():
A new feature.
Bug fixes:
* [Link to github PR]():
A bugfix.
-->
0.1.0 (2020-06-02)
==================
Initial release:
* Miner connection is optionally configurable via command line
* device credentials and uplink rate defined via lorawan-device.json
* tolerates ACK packets only
* prints timeliness of Downlinks relative to RxWindow1
147 changes: 134 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 43f8094

Please sign in to comment.