Makefile: rename run-scylla to start-scylla (#311)
This commit is contained in:
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -42,8 +42,5 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
run: make check
|
run: make check
|
||||||
|
|
||||||
- name: Run Scylla Container
|
|
||||||
run: make run-scylla
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -37,7 +37,7 @@ fix:
|
|||||||
GOTEST := go test -cpu $(GOTEST_CPU) -count=1 -cover -race -tags all
|
GOTEST := go test -cpu $(GOTEST_CPU) -count=1 -cover -race -tags all
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test: start-scylla
|
||||||
echo "==> Running tests..."
|
echo "==> Running tests..."
|
||||||
echo "==> Running tests... in ."
|
echo "==> Running tests... in ."
|
||||||
@$(GOTEST) .
|
@$(GOTEST) .
|
||||||
@@ -62,8 +62,8 @@ bench:
|
|||||||
run-examples:
|
run-examples:
|
||||||
@go test -tags all -v -run=Example ./...
|
@go test -tags all -v -run=Example ./...
|
||||||
|
|
||||||
.PHONY: run-scylla
|
.PHONY: start-scylla
|
||||||
run-scylla:
|
start-scylla:
|
||||||
@echo "==> Running test instance of Scylla $(SCYLLA_IMAGE)"
|
@echo "==> Running test instance of Scylla $(SCYLLA_IMAGE)"
|
||||||
@docker pull $(SCYLLA_IMAGE)
|
@docker pull $(SCYLLA_IMAGE)
|
||||||
@docker run --name gocqlx-scylla -p 9042:9042 --cpuset-cpus=$(SCYLLA_CPU) --memory 1G --rm -d $(SCYLLA_IMAGE)
|
@docker run --name gocqlx-scylla -p 9042:9042 --cpuset-cpus=$(SCYLLA_CPU) --memory 1G --rm -d $(SCYLLA_IMAGE)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Running examples locally:
|
// Running examples locally:
|
||||||
// make run-scylla
|
// make start-scylla
|
||||||
// make run-examples
|
// make run-examples
|
||||||
func TestExample(t *testing.T) {
|
func TestExample(t *testing.T) {
|
||||||
const ks = "migrate_example"
|
const ks = "migrate_example"
|
||||||
|
|||||||
Reference in New Issue
Block a user