Skip to content

Commit

Permalink
test: skip slow e2e tests unless releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 13, 2023
1 parent 253918b commit c4e09a9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
RUST_BACKTRACE: "1"
TEST_TRANCHE: ${{matrix.tranche}}
TEST_TRANCHE_COUNT: 4
TEST_ALL: 1
with:
timeout_minutes: 20
max_attempts: 3
Expand Down
4 changes: 4 additions & 0 deletions e2e/ruby/test_ruby
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export RTX_RUBY_DEFAULT_PACKAGES_FILE="$ROOT/e2e/.default-gems"
export RTX_RUBY_VERBOSE_INSTALL=1
export RTX_RAW=1

if [ "$TEST_ALL" != 1 ]; then
exit
fi

cat >Gemfile <<EOF
# frozen_string_literal: true
Expand Down
1 change: 1 addition & 0 deletions e2e/run_test
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ setup_env() {
export RTX_CONFIG_FILE="$ROOT/e2e/.config/rtx/config.toml"
export RTX_TRUSTED_CONFIG_PATHS="$ROOT/e2e"
export RTX_YES="1"
export RTX_VERBOSE="1"
unset GOPATH
}

Expand Down
4 changes: 4 additions & 0 deletions e2e/test_erlang
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ set -euo pipefail
# shellcheck source-path=SCRIPTDIR
source "$(dirname "$0")/assert.sh"

if [ "$TEST_ALL" != 1 ]; then
exit
fi

export RTX_EXPERIMENTAL=1

assert_contains "rtx x [email protected] -- erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell" "24"

0 comments on commit c4e09a9

Please sign in to comment.