diff --git a/Cargo.toml b/Cargo.toml index e983489..916aace 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/tests/integration.sh b/tests/integration.sh index 62d5f3a..6413e7c 100755 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -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"