Use separate cargo profile for integration tests (faster build time)

This commit is contained in:
Marcin Kulik
2026-02-06 19:06:11 +01:00
parent 546cd9ab09
commit f93ee80bb9
2 changed files with 12 additions and 2 deletions

View File

@@ -54,5 +54,15 @@ strip = true
lto = true
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]
macos-tty = []

View File

@@ -132,12 +132,12 @@ setup() {
TMP_DATA_DIR="$(mktemp -d 2>/dev/null || mktemp -d -t asciinema-data-dir)"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
FIXTURES="$SCRIPT_DIR/casts"
ASCIINEMA_BIN="$SCRIPT_DIR/../target/release/asciinema"
ASCIINEMA_BIN="$SCRIPT_DIR/../target/integration-test/asciinema"
trap 'cleanup' EXIT
log_info "Building release binary..."
cargo build --release --locked
cargo build --profile=integration-test --locked
# disable notifications
printf "[notifications]\nenabled = false\n" >> "${ASCIINEMA_CONFIG_HOME}/config.toml"