ci: add jenkins pipeline
All checks were successful
Cadoles/mktools/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/mktools/pipeline/pr-master This commit looks good
This commit is contained in:
parent
140ce517cf
commit
6e9cf40c66
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
tools/
|
3
Jenkinsfile
vendored
Normal file
3
Jenkinsfile
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
@Library("cadoles") _
|
||||
|
||||
standardMakePipeline()
|
23
Makefile
Normal file
23
Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
.PHONY: all
|
||||
all: test build
|
||||
|
||||
.PHONY: test
|
||||
test: tools/checkmake/bin/checkmake
|
||||
tools/checkmake/bin/checkmake Makefile
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
|
||||
.PHONY: release
|
||||
release: changelog
|
||||
$(MAKE) MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" mkt-gitea-release
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf tools
|
||||
|
||||
.PHONY: changelog
|
||||
changelog:
|
||||
$(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog
|
||||
|
||||
include tasks/*.mk
|
8
tasks/checkmake.mk
Normal file
8
tasks/checkmake.mk
Normal file
@ -0,0 +1,8 @@
|
||||
MKT_CHECKMAKE_VERSION ?= 0.2.2
|
||||
MKT_CHECKMAKE_URL ?= https://github.com/mrtazz/checkmake/releases/download/$(MKT_CHECKMAKE_VERSION)/checkmake-$(MKT_CHECKMAKE_VERSION).linux.amd64
|
||||
|
||||
tools/checkmake/bin/checkmake:
|
||||
mkdir -p tools/checkmake/bin
|
||||
grep -qF -- "tools/" ".gitignore" 2>/dev/null || echo "tools/" >> ".gitignore"
|
||||
curl -sL -o tools/checkmake/bin/checkmake "$(MKT_CHECKMAKE_URL)"
|
||||
chmod +x tools/checkmake/bin/checkmake
|
Loading…
Reference in New Issue
Block a user