mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
2099208e4b
GITHUB_PR_NUMBER: 6640 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6640 Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com> Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com> GitOrigin-RevId: 362d82d8ee18afd7efa63e9c8912f6c5444f82dd
25 lines
604 B
Makefile
25 lines
604 B
Makefile
PWD := $(shell pwd)
|
|
PARENT_DIR := $(shell dirname $(PWD))
|
|
VERSION ?= $(shell ../get-version.sh)
|
|
BUILD_DIR ?= /build
|
|
BUILD_OUTPUT ?= $(BUILD_DIR)/_cli_migrations_output
|
|
SERVER_BUILD_OUTPUT := $(BUILD_DIR)/_server_output
|
|
CLI_BUILD_OUTPUT := $(BUILD_DIR)/_cli_output
|
|
SHELL := /bin/bash
|
|
.SHELLFLAGS := -ce
|
|
|
|
.PHONY: build-cli-migrations-v2
|
|
.ONESHELL:
|
|
build-cli-migrations-v2:
|
|
cd v2
|
|
./build.sh $(SERVER_BUILD_OUTPUT) $(CLI_BUILD_OUTPUT) $(BUILD_OUTPUT)
|
|
|
|
.PHONY: test-cli-migrations-v2
|
|
.ONESHELL:
|
|
test-cli-migrations-v2:
|
|
cd v2/test
|
|
./test.sh
|
|
|
|
.PHONY: all
|
|
all: build-cli-migrations-v2 test-cli-migrations-v2
|