mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +03:00
17 lines
247 B
Bash
17 lines
247 B
Bash
|
#!/bin/bash
|
||
|
set -ex
|
||
|
|
||
|
RELEASE_FLAG=""
|
||
|
|
||
|
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]] ; then
|
||
|
cargo fmt --all -- --check
|
||
|
fi
|
||
|
|
||
|
if [[ "$TRAVIS_TAG" != "" ]] ; then
|
||
|
RELEASE_FLAG="--release"
|
||
|
fi
|
||
|
|
||
|
cargo build $RELEASE_FLAG
|
||
|
cargo test $RELEASE_FLAG --all
|
||
|
|