mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-29 14:41:35 +02:00
Add CI scripts
This commit is contained in:
parent
1f5c76d194
commit
03c5096f31
@ -11,12 +11,6 @@ matrix:
|
|||||||
rust: stable
|
rust: stable
|
||||||
env: TARGET=osx
|
env: TARGET=osx
|
||||||
|
|
||||||
before_install:
|
|
||||||
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
||||||
|
|
||||||
install:
|
|
||||||
- bash ci/install.sh
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bash ci/script.sh
|
- bash ci/script.sh
|
||||||
|
|
||||||
|
14
ci/before_deploy.sh
Normal file
14
ci/before_deploy.sh
Normal file
@ -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
|
3
ci/script.sh
Normal file
3
ci/script.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
cargo clean --target $TARGET --verbose
|
||||||
|
cargo build --target $TARGET --verbose
|
||||||
|
cargo test --target $TARGET --verbose
|
Loading…
Reference in New Issue
Block a user