1
0
Fork 0

lint(build): copy variables from std makefile

This commit is contained in:
ssube 2019-08-30 00:26:18 -05:00
parent 489ca33723
commit 99b9844a2d
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 20 additions and 19 deletions

View File

@ -1,36 +1,36 @@
# Git # Git
export GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) export GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
export GIT_COMMIT ?= $(shell git rev-parse HEAD) export GIT_COMMIT ?= $(shell git rev-parse HEAD)
export GIT_REMOTES ?= $(shell git remote -v | awk '{ print $1; }' | sort | uniq) export GIT_REMOTES ?= $(shell git remote -v | awk '{ print $1; }' | sort | uniq)
export GIT_OPTIONS ?= export GIT_OPTIONS ?=
# CI # CI
export CI_COMMIT_REF_SLUG ?= $(GIT_BRANCH) export CI_COMMIT_REF_SLUG ?= $(GIT_BRANCH)
export CI_COMMIT_SHA ?= $(GIT_COMMIT) export CI_COMMIT_SHA ?= $(GIT_COMMIT)
export CI_ENVIRONMENT_SLUG ?= local export CI_ENVIRONMENT_SLUG ?= local
export CI_JOB_ID ?= 0 export CI_JOB_ID ?= 0
export CI_RUNNER_DESCRIPTION ?= $(shell hostname) export CI_RUNNER_DESCRIPTION ?= $(shell hostname)
export CI_RUNNER_ID ?= $(shell hostname) export CI_RUNNER_ID ?= $(shell hostname)
export CI_RUNNER_VERSION ?= 0.0.0 export CI_RUNNER_VERSION ?= 0.0.0
# Debug # Debug
export DEBUG_BIND ?= 127.0.0.1 export DEBUG_BIND ?= 127.0.0.1
export DEBUG_PORT ?= 9229 export DEBUG_PORT ?= 9229
# Paths # Paths
# resolve the makefile's path and directory, from https://stackoverflow.com/a/18137056 # resolve the makefile's path and directory, from https://stackoverflow.com/a/18137056
export MAKE_PATH ?= $(abspath $(lastword $(MAKEFILE_LIST))) export MAKE_PATH ?= $(abspath $(lastword $(MAKEFILE_LIST)))
export ROOT_PATH ?= $(dir $(MAKE_PATH)) export ROOT_PATH ?= $(dir $(MAKE_PATH))
export CONFIG_PATH ?= $(ROOT_PATH)/config export CONFIG_PATH ?= $(ROOT_PATH)/config
export SCRIPT_PATH ?= $(ROOT_PATH)/scripts export SCRIPT_PATH ?= $(ROOT_PATH)/scripts
export SOURCE_PATH ?= $(ROOT_PATH)/src export SOURCE_PATH ?= $(ROOT_PATH)/src
export TARGET_PATH ?= $(ROOT_PATH)/out export TARGET_PATH ?= $(ROOT_PATH)/out
export TEST_PATH ?= $(ROOT_PATH)/test export TEST_PATH ?= $(ROOT_PATH)/test
# Node options # Node options
NODE_BIN := $(ROOT_PATH)/node_modules/.bin NODE_BIN := $(ROOT_PATH)/node_modules/.bin
NODE_CMD ?= $(shell env node) NODE_CMD ?= $(shell env node)
NODE_DEBUG ?= --inspect-brk=$(DEBUG_BIND):$(DEBUG_PORT) --nolazy NODE_DEBUG ?= --inspect-brk=$(DEBUG_BIND):$(DEBUG_PORT) --nolazy
export NODE_OPTIONS ?= --max-old-space-size=5500 export NODE_OPTIONS ?= --max-old-space-size=5500
# Tool options # Tool options
@ -43,6 +43,7 @@ export NODE_VERSION := $(shell node -v)
export RUNNER_VERSION := $(CI_RUNNER_VERSION) export RUNNER_VERSION := $(CI_RUNNER_VERSION)
all: build all: build
@echo Success!
clean: ## clean up everything added by the default target clean: ## clean up everything added by the default target
clean: clean-deps clean-target clean: clean-deps clean-target