mirror of
https://github.com/asciinema/asciinema.git
synced 2026-05-18 05:04:50 +02:00
Use separate cargo profile for integration tests (faster build time)
This commit is contained in:
10
Cargo.toml
10
Cargo.toml
@@ -54,5 +54,15 @@ strip = true
|
|||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
[profile.integration-test]
|
||||||
|
inherits = "release"
|
||||||
|
opt-level = 0
|
||||||
|
lto = false
|
||||||
|
codegen-units = 256
|
||||||
|
strip = "none"
|
||||||
|
incremental = true
|
||||||
|
debug-assertions = false
|
||||||
|
overflow-checks = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
macos-tty = []
|
macos-tty = []
|
||||||
|
|||||||
@@ -132,12 +132,12 @@ setup() {
|
|||||||
TMP_DATA_DIR="$(mktemp -d 2>/dev/null || mktemp -d -t asciinema-data-dir)"
|
TMP_DATA_DIR="$(mktemp -d 2>/dev/null || mktemp -d -t asciinema-data-dir)"
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
FIXTURES="$SCRIPT_DIR/casts"
|
FIXTURES="$SCRIPT_DIR/casts"
|
||||||
ASCIINEMA_BIN="$SCRIPT_DIR/../target/release/asciinema"
|
ASCIINEMA_BIN="$SCRIPT_DIR/../target/integration-test/asciinema"
|
||||||
|
|
||||||
trap 'cleanup' EXIT
|
trap 'cleanup' EXIT
|
||||||
|
|
||||||
log_info "Building release binary..."
|
log_info "Building release binary..."
|
||||||
cargo build --release --locked
|
cargo build --profile=integration-test --locked
|
||||||
|
|
||||||
# disable notifications
|
# disable notifications
|
||||||
printf "[notifications]\nenabled = false\n" >> "${ASCIINEMA_CONFIG_HOME}/config.toml"
|
printf "[notifications]\nenabled = false\n" >> "${ASCIINEMA_CONFIG_HOME}/config.toml"
|
||||||
|
|||||||
Reference in New Issue
Block a user