mirror of
https://github.com/wez/wezterm.git
synced 2024-12-26 14:54:16 +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
|
||
|
|