Skip to content

Commit

Permalink
feat: include test-results CLI in self-hosted Windows toolbox (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspin authored Sep 13, 2022
1 parent c5c7c6e commit 12aaa80
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
3 changes: 2 additions & 1 deletion release/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
ARTIFACT_CLI_VERSION="v0.6.0"
WHEN_CLI_VERSION="v1.0.5"
SPC_CLI_VERSION="v1.9.4"
TEST_RESULTS_CLI_VERSION="v0.6.2"
TEST_RESULTS_CLI_VERSION="v0.6.3"

ARTIFACT_CLI_URL="https://github.com/semaphoreci/artifact/releases/download/$ARTIFACT_CLI_VERSION"
SPC_CLI_URL="https://github.com/semaphoreci/spc/releases/download/$SPC_CLI_VERSION"
Expand Down Expand Up @@ -153,6 +153,7 @@ self_hosted::pack() {
include_external_linux_binary $TEST_RESULTS_CLI_URL "test-results" /tmp/self-hosted-Linux-arm "arm64"
include_external_darwin_binary $TEST_RESULTS_CLI_URL "test-results" /tmp/self-hosted-Darwin "x86_64"
include_external_darwin_binary $TEST_RESULTS_CLI_URL "test-results" /tmp/self-hosted-Darwin-arm "arm64"
include_external_windows_binary $TEST_RESULTS_CLI_URL "test-results" /tmp/self-hosted-Windows
include_external_linux_binary $SPC_CLI_URL "spc" /tmp/self-hosted-Linux "x86_64"
include_external_linux_binary $SPC_CLI_URL "spc" /tmp/self-hosted-Linux-arm "arm64"
include_external_darwin_binary $SPC_CLI_URL "spc" /tmp/self-hosted-Darwin "x86_64"
Expand Down
29 changes: 14 additions & 15 deletions tests/sem_version_container.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,31 @@ setup() {
source ~/.toolbox/toolbox
}

@test "sem-version flutter 2.10.5" {
@test "sem-version flutter 3.0.5" {

run sem-version flutter 2.10.5
run sem-version flutter 3.0.5
assert_success
assert_line --partial "2.10.5"
assert_line --partial "3.0.5"
}

@test "sem-version flutter 3.0" {

@test "sem-version flutter 2.10" {

run sem-version flutter 2.10
run sem-version flutter 3.0
assert_success
assert_line --partial "2.10"
assert_line --partial "3.0.5"
}

@test "sem-version flutter 3.3.0" {

@test "sem-version flutter 3.0.1" {

run sem-version flutter 3.0.1
run sem-version flutter 3.3.0
assert_success
assert_line --partial "3.0.1"
assert_line --partial "3.3.0"
}

@test "sem-version flutter 3.0" {

run sem-version flutter 3.0
@test "sem-version flutter 3.3" {

run sem-version flutter 3.3
assert_success
assert_line --partial "3.0.1"
}
assert_line --partial "3.3.0"
}

0 comments on commit 12aaa80

Please sign in to comment.