Add CI scripts
This commit is contained in:
parent
1f5c76d194
commit
03c5096f31
|
@ -11,12 +11,6 @@ matrix:
|
|||
rust: stable
|
||||
env: TARGET=osx
|
||||
|
||||
before_install:
|
||||
- export PATH="$PATH:$HOME/.cargo/bin"
|
||||
|
||||
install:
|
||||
- bash ci/install.sh
|
||||
|
||||
script:
|
||||
- bash ci/script.sh
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
# Build script shamelessly stolen from ripgrep :)
|
||||
|
||||
cargo build --target $TARGET --release
|
||||
|
||||
build_dir=$(mktemp -d 2>/dev/null || mktemp -d -t tmp)
|
||||
out_dir=$(pwd)
|
||||
name="${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}"
|
||||
mkdir "$build_dir/$name"
|
||||
|
||||
cp target/$TARGET/release/watchexec "$build_dir/$name/"
|
||||
|
||||
pushd $build_dir
|
||||
tar czf "$out_dir/$name.tar.gz" *
|
||||
popd
|
|
@ -0,0 +1,3 @@
|
|||
cargo clean --target $TARGET --verbose
|
||||
cargo build --target $TARGET --verbose
|
||||
cargo test --target $TARGET --verbose
|
Loading…
Reference in New Issue