Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,83 +407,6 @@ blocks:
commands:
- bash tests/sem_service/$TEST

- name: "Bats: xcode15"
dependencies:
- "Build local CLIs"
task:
agent:
machine:
type: a1-standard-4
os_image: macos-xcode15

prologue:
commands:
- checkout
- artifact pull workflow bin/linux/amd64/cache -d cache-cli/bin/linux/amd64/cache
- artifact pull workflow bin/linux/arm64/cache -d cache-cli/bin/linux/arm64/cache
- artifact pull workflow bin/darwin/amd64/cache -d cache-cli/bin/darwin/amd64/cache
- artifact pull workflow bin/darwin/arm64/cache -d cache-cli/bin/darwin/arm64/cache
- artifact pull workflow bin/linux/amd64/sem-context -d sem-context/bin/linux/amd64/sem-context
- artifact pull workflow bin/linux/arm64/sem-context -d sem-context/bin/linux/arm64/sem-context
- artifact pull workflow bin/darwin/amd64/sem-context -d sem-context/bin/darwin/amd64/sem-context
- artifact pull workflow bin/darwin/arm64/sem-context -d sem-context/bin/darwin/arm64/sem-context
- artifact pull workflow bin/linux/amd64/test-results -d test-results/bin/linux/amd64/test-results
- artifact pull workflow bin/linux/arm64/test-results -d test-results/bin/linux/arm64/test-results
- artifact pull workflow bin/darwin/amd64/test-results -d test-results/bin/darwin/amd64/test-results
- artifact pull workflow bin/darwin/arm64/test-results -d test-results/bin/darwin/arm64/test-results
- bash release/create.sh
- source tests/sftp_server/start_on_mac.sh

jobs:
- name: "Cache tests"
matrix:
- env_var: TEST
values:
- tests/libcheckout.bats
- env_var: SEMAPHORE_CACHE_ARCHIVE_METHOD
values:
- shell-out
- native
- native-parallel
commands:
- source release/install_in_tests.sh
- git submodule init && git submodule update
- sudo ./tests/support/bats-core/install.sh /usr/local
- bats --report-formatter junit --tap --timing $TEST

- name: "Cache tests -e"
matrix:
- env_var: TEST
values:
- tests/libcheckout.bats
- env_var: SEMAPHORE_CACHE_ARCHIVE_METHOD
values:
- shell-out
- native
- native-parallel
commands:
- cd ~ && rm -rf toolbox
- set -evo pipefail
- checkout --use-cache

- name: "Non-cache tests"
matrix:
- env_var: TEST
values:
- tests/artifacts.bats
- tests/test-results.bats
- tests/macOS_sem_version.bats
- tests/sem-semantic-release.bats
commands:
- source release/install_in_tests.sh
- git submodule init && git submodule update
- sudo ./tests/support/bats-core/install.sh /usr/local
- bats --report-formatter junit --tap --timing $TEST
epilogue:
always:
commands:
- 'test-results publish report.xml --name="Bats: Mac" --suite-prefix=$TEST'

- name: "Bats: xcode15 arm"
dependencies:
- "Build local CLIs"
Expand Down
3 changes: 3 additions & 0 deletions sem-install
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ install::install_elixir() {
"1.17"* | "1.18"*)
local erlang_version="27.0"
;;
"1.19"*)
local erlang_version="28.0"
;;
*)
echo "Installation of '${language}' version '${language_version}' is not yet supported"
return 1;
Expand Down
1 change: 1 addition & 0 deletions sem-version
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ version::change_elixir() {
[[ "$software_version" == "1.16" ]] && software_version="1.16.3"
[[ "$software_version" == "1.17" ]] && software_version="1.17.3"
[[ "$software_version" == "1.18" ]] && software_version="1.18.4"
[[ "$software_version" == "1.19" ]] && software_version="1.19.0"

if [[ $(kiex list) != *"${software_version}"* ]];then
sem-install elixir "${software_version}"
Expand Down
6 changes: 6 additions & 0 deletions tests/sem_version_focal/elixir.bats
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,9 @@ setup() {
run elixir --version
assert_line --partial "Elixir 1.18.4"
}

@test "change elixir to 1.19.0" {
sem-version elixir 1.19.0
run elixir --version
assert_line --partial "Elixir 1.19.0"
}
6 changes: 6 additions & 0 deletions tests/sem_version_jammy/elixir.bats
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ setup() {
run elixir --version
assert_line --partial "Elixir 1.18.4"
}

@test "change elixir to 1.19.0" {
sem-version elixir 1.19.0
run elixir --version
assert_line --partial "Elixir 1.19.0"
}
6 changes: 6 additions & 0 deletions tests/sem_version_noble/elixir.bats
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ setup() {
run elixir --version
assert_line --partial "Elixir 1.18.4"
}

@test "change elixir to 1.19.0" {
sem-version elixir 1.19.0
run elixir --version
assert_line --partial "Elixir 1.19.0"
}