Skip to content

Commit c2bc11c

Browse files
authored
Add support for Elixir 1.19.x (#512)
* feat: Add support for Elixir 1.19.x * Remove tests for xcode15
1 parent 43efe82 commit c2bc11c

File tree

6 files changed

+22
-77
lines changed

6 files changed

+22
-77
lines changed

.semaphore/semaphore.yml

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -407,83 +407,6 @@ blocks:
407407
commands:
408408
- bash tests/sem_service/$TEST
409409

410-
- name: "Bats: xcode15"
411-
dependencies:
412-
- "Build local CLIs"
413-
task:
414-
agent:
415-
machine:
416-
type: a1-standard-4
417-
os_image: macos-xcode15
418-
419-
prologue:
420-
commands:
421-
- checkout
422-
- artifact pull workflow bin/linux/amd64/cache -d cache-cli/bin/linux/amd64/cache
423-
- artifact pull workflow bin/linux/arm64/cache -d cache-cli/bin/linux/arm64/cache
424-
- artifact pull workflow bin/darwin/amd64/cache -d cache-cli/bin/darwin/amd64/cache
425-
- artifact pull workflow bin/darwin/arm64/cache -d cache-cli/bin/darwin/arm64/cache
426-
- artifact pull workflow bin/linux/amd64/sem-context -d sem-context/bin/linux/amd64/sem-context
427-
- artifact pull workflow bin/linux/arm64/sem-context -d sem-context/bin/linux/arm64/sem-context
428-
- artifact pull workflow bin/darwin/amd64/sem-context -d sem-context/bin/darwin/amd64/sem-context
429-
- artifact pull workflow bin/darwin/arm64/sem-context -d sem-context/bin/darwin/arm64/sem-context
430-
- artifact pull workflow bin/linux/amd64/test-results -d test-results/bin/linux/amd64/test-results
431-
- artifact pull workflow bin/linux/arm64/test-results -d test-results/bin/linux/arm64/test-results
432-
- artifact pull workflow bin/darwin/amd64/test-results -d test-results/bin/darwin/amd64/test-results
433-
- artifact pull workflow bin/darwin/arm64/test-results -d test-results/bin/darwin/arm64/test-results
434-
- bash release/create.sh
435-
- source tests/sftp_server/start_on_mac.sh
436-
437-
jobs:
438-
- name: "Cache tests"
439-
matrix:
440-
- env_var: TEST
441-
values:
442-
- tests/libcheckout.bats
443-
- env_var: SEMAPHORE_CACHE_ARCHIVE_METHOD
444-
values:
445-
- shell-out
446-
- native
447-
- native-parallel
448-
commands:
449-
- source release/install_in_tests.sh
450-
- git submodule init && git submodule update
451-
- sudo ./tests/support/bats-core/install.sh /usr/local
452-
- bats --report-formatter junit --tap --timing $TEST
453-
454-
- name: "Cache tests -e"
455-
matrix:
456-
- env_var: TEST
457-
values:
458-
- tests/libcheckout.bats
459-
- env_var: SEMAPHORE_CACHE_ARCHIVE_METHOD
460-
values:
461-
- shell-out
462-
- native
463-
- native-parallel
464-
commands:
465-
- cd ~ && rm -rf toolbox
466-
- set -evo pipefail
467-
- checkout --use-cache
468-
469-
- name: "Non-cache tests"
470-
matrix:
471-
- env_var: TEST
472-
values:
473-
- tests/artifacts.bats
474-
- tests/test-results.bats
475-
- tests/macOS_sem_version.bats
476-
- tests/sem-semantic-release.bats
477-
commands:
478-
- source release/install_in_tests.sh
479-
- git submodule init && git submodule update
480-
- sudo ./tests/support/bats-core/install.sh /usr/local
481-
- bats --report-formatter junit --tap --timing $TEST
482-
epilogue:
483-
always:
484-
commands:
485-
- 'test-results publish report.xml --name="Bats: Mac" --suite-prefix=$TEST'
486-
487410
- name: "Bats: xcode15 arm"
488411
dependencies:
489412
- "Build local CLIs"

sem-install

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ install::install_elixir() {
9999
"1.17"* | "1.18"*)
100100
local erlang_version="27.0"
101101
;;
102+
"1.19"*)
103+
local erlang_version="28.0"
104+
;;
102105
*)
103106
echo "Installation of '${language}' version '${language_version}' is not yet supported"
104107
return 1;

sem-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ version::change_elixir() {
7474
[[ "$software_version" == "1.16" ]] && software_version="1.16.3"
7575
[[ "$software_version" == "1.17" ]] && software_version="1.17.3"
7676
[[ "$software_version" == "1.18" ]] && software_version="1.18.4"
77+
[[ "$software_version" == "1.19" ]] && software_version="1.19.0"
7778

7879
if [[ $(kiex list) != *"${software_version}"* ]];then
7980
sem-install elixir "${software_version}"

tests/sem_version_focal/elixir.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ setup() {
9595
run elixir --version
9696
assert_line --partial "Elixir 1.18.4"
9797
}
98+
99+
@test "change elixir to 1.19.0" {
100+
sem-version elixir 1.19.0
101+
run elixir --version
102+
assert_line --partial "Elixir 1.19.0"
103+
}

tests/sem_version_jammy/elixir.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ setup() {
6565
run elixir --version
6666
assert_line --partial "Elixir 1.18.4"
6767
}
68+
69+
@test "change elixir to 1.19.0" {
70+
sem-version elixir 1.19.0
71+
run elixir --version
72+
assert_line --partial "Elixir 1.19.0"
73+
}

tests/sem_version_noble/elixir.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ setup() {
6565
run elixir --version
6666
assert_line --partial "Elixir 1.18.4"
6767
}
68+
69+
@test "change elixir to 1.19.0" {
70+
sem-version elixir 1.19.0
71+
run elixir --version
72+
assert_line --partial "Elixir 1.19.0"
73+
}

0 commit comments

Comments
 (0)