From 36b91995f707b71bd53487c1728e451ffbf3f4b0 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Thu, 4 Apr 2019 09:54:28 +0200 Subject: [PATCH] Releasing binaries on github releases page --- .travis.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e70821..2814948 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,19 @@ +dist: xenial language: rust -rust: - - stable - - beta - - nightly -matrix: - allow_failures: - - rust: nightly - - rust: beta +rust: stable cache: cargo +script: + - cargo build --verbose --release + - cargo test --verbose --release +before_deploy: + - cd target/release + - tar cjvf ../../geoip-rs-$TRAVIS_TAG-linux-amd64.tar.bz2 geoip-rs + - cd $TRAVIS_BUILD_DIR +deploy: + provider: releases + api_key: $GH_TOKEN + file_glob: true + file: geoip-rs*.tar.bz2 + skip_cleanup: true + on: + tags: true