summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-08 16:21:37 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-08 16:21:37 -0400
commit96e87ab7385ca141b47e3ad2bebedc6be9cccaca (patch)
treee24b6eab614c494c0140c0c4631a6d7d8eacdbae /ci
parenta744ec133d12e0c8d8e8b0486cd92e2b60ad61e6 (diff)
update distributable to include readme and license0.0.12
Diffstat (limited to 'ci')
-rw-r--r--ci/before_deploy.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh
index 40f66d81..f4a081f4 100644
--- a/ci/before_deploy.sh
+++ b/ci/before_deploy.sh
@@ -6,23 +6,22 @@ set -ex
# Generate artifacts for release
mk_artifacts() {
- RUSTFLAGS="-C target-feature=+ssse3" cargo build --target $TARGET --release --features simd-accel
+ RUSTFLAGS="-C target-feature=+ssse3" \
+ cargo build --target $TARGET --release --features simd-accel
}
mk_tarball() {
# create a "staging" directory
local td=$(mktempd)
local out_dir=$(pwd)
+ local name="${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}"
+ mkdir "$td/$name"
- # TODO update this part to copy the artifacts that make sense for your project
- # NOTE All Cargo build artifacts will be under the 'target/$TARGET/{debug,release}'
- cp target/$TARGET/release/rg $td
+ cp target/$TARGET/release/rg "$td/$name/"
+ cp {README,UNLICENSE,COPYING,LICENSE_MIT} "$td/$name/"
pushd $td
-
- # release tarball will look like 'rust-everywhere-v1.2.3-x86_64-unknown-linux-gnu.tar.gz'
- tar czf $out_dir/${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz *
-
+ tar czf "$out_dir/$name.tar.gz" *
popd
rm -r $td
}