Skip to content

Commit

Permalink
Enable Drone builds on repo
Browse files Browse the repository at this point in the history
  • Loading branch information
gtaylor committed Sep 6, 2017
1 parent 398ddfa commit 91d2841
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
build:
test:
image: rust:1.19.0
commands:
- cargo test

release:
image: rust:1.19.0
commands:
- cargo build --release
- cp target/release/libsnoomark.so target/release/libsnoomark-$${TAG}.so
- echo
- echo "SHA256 hash of the built libsnoomark release:"
- shasum -a 256 target/release/libsnoomark-$${TAG}.so
- echo
when:
event: tag

publish:
upload:
image: plugins/s3
environment:
- PLUGIN_SOURCE=/drone/src/github.com/reddit/snoomark/target/release/libsnoomark-$${TAG}.so
- PLUGIN_STRIP_PREFIX=/drone/src/github.com/reddit/snoomark/target/release/
- PLUGIN_BUCKET=reddit-packages
- PLUGIN_TARGET=/amd64/snoomark
when:
event: tag
status: success

notify:
slack:
webhook_url: $$CI_SLACK_WEBHOOK_URL
channel: ci-notifications
slack:
webhook_url: $$CI_SLACK_WEBHOOK_URL
repo: reddit/snoomark
channel: rex-salon

0 comments on commit 91d2841

Please sign in to comment.