Skip to content

Commit

Permalink
ci: remove tarantoolctl
Browse files Browse the repository at this point in the history
  • Loading branch information
0x501D committed Jan 18, 2024
1 parent 02a8820 commit bd2997b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ jobs:
with:
tarantool-version: '2.8'

- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version
- name: Setup luacheck
run: tarantoolctl rocks install luacheck 0.25.0
run: tt rocks install luacheck 0.25.0

- name: Run luacheck
run: ./.rocks/bin/luacheck .
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
with:
go-version: 1.13

- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version
- name: Install test dependencies
run: make deps

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,15 @@ jobs:
run: echo "MallocNanoZone=0" >> $GITHUB_ENV
if: matrix.runs-on == 'macos-12'

# Workaround issue https://github.com/tarantool/tt/issues/640
- name: Fix tt rocks
if: matrix.tarantool == 'brew'
run: |
brew ls --verbose tarantool | grep macosx.lua | xargs rm -f
- name: Install test dependencies
run: |
brew install luarocks
brew install tt
cd "${SRCDIR}"
make deps
Expand Down
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ BENCH_OPTIONS := -bench=. -run=^Benchmark -benchmem -benchtime=${DURATION} -coun
GO_TARANTOOL_URL := https://github.com/tarantool/go-tarantool
GO_TARANTOOL_DIR := ${PROJECT_DIR}/${BENCH_PATH}/go-tarantool
TAGS :=
TTCTL := tt
ifeq (,$(shell which tt 2>/dev/null))
TTCTL := tarantoolctl
endif

.PHONY: clean
clean:
Expand All @@ -26,8 +22,9 @@ clean:

.PHONY: deps
deps: clean
( cd ./queue/testdata; $(TTCTL) rocks install queue 1.3.0 )
( cd ./crud/testdata; $(TTCTL) rocks install crud 1.4.1 )
@(command -v tt > /dev/null || (echo "error: tt not found" && exit 1))
( cd ./queue/testdata; tt rocks install queue 1.3.0 )
( cd ./crud/testdata; tt rocks install crud 1.4.1 )

.PHONY: datetime-timezones
datetime-timezones:
Expand Down

0 comments on commit bd2997b

Please sign in to comment.