From 3069f4bb83b3fd4f8b99302c029335ae1c8335e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Tue, 21 Aug 2018 16:28:42 +1200 Subject: [PATCH] Install rustup target for musl --- .gitignore | 2 ++ .travis.yml | 8 +++----- ci/before_deploy.sh | 5 ++++- ci/before_script.sh | 4 ++++ ci/script.sh | 3 ++- 5 files changed, 15 insertions(+), 7 deletions(-) mode change 100644 => 100755 ci/before_deploy.sh create mode 100755 ci/before_script.sh mode change 100644 => 100755 ci/script.sh diff --git a/.gitignore b/.gitignore index eb5a316..c2c87bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ target +*.tar.gz +*.zip diff --git a/.travis.yml b/.travis.yml index f9be14e..ca7eba6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,12 +45,10 @@ matrix: - rust: nightly fast_finish: true -script: -- bash ci/script.sh - -before_deploy: -- bash ci/before_deploy.sh +before_script: ci/before_script.sh +script: ci/script.sh +before_deploy: ci/before_deploy.sh deploy: provider: releases api_key: diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh old mode 100644 new mode 100755 index 2c3b88e..31c05a3 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Build script shamelessly stolen from ripgrep :) cargo build --target $TARGET --release @@ -11,5 +13,6 @@ cp target/$TARGET/release/watchexec "$build_dir/$name/" cp {doc/watchexec.1,LICENSE} "$build_dir/$name/" pushd $build_dir -GZIP=-9 tar czf "$out_dir/$name.tar.gz" * +tar cvf "$out_dir/$name.tar" * popd +gzip -f9 "$name.tar" diff --git a/ci/before_script.sh b/ci/before_script.sh new file mode 100755 index 0000000..88f888a --- /dev/null +++ b/ci/before_script.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +rustup target add $TARGET +cargo clean --target $TARGET --verbose diff --git a/ci/script.sh b/ci/script.sh old mode 100644 new mode 100755 index 5010ceb..95dee5d --- a/ci/script.sh +++ b/ci/script.sh @@ -1,3 +1,4 @@ -cargo clean --target $TARGET --verbose +#!/usr/bin/env bash + cargo build --target $TARGET --verbose cargo test --target $TARGET --verbose