fix(Makefile, travis): define correct make steps

This commit is contained in:
Markus Pesch 2019-09-04 14:04:02 +02:00
parent 4e531b8734
commit bacddcfbf9
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 12 additions and 14 deletions

View File

@ -6,13 +6,11 @@ services:
jobs:
include:
- stage: build
name: go-build
script: make container-run/all
deploy:
- provider: script
script: make container-run/release/all
# skip_cleanup: true
on:
tags: true

View File

@ -230,59 +230,59 @@ container-image/push/amd64: container-image/build/amd64
# current os
PHONY+=container-run/${EXECUTABLE}
container-run/${EXECUTABLE}:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# build all binaries for any operating system
PHONY+=container-run/all
container-run/all:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
PHONY+=${UNIX_EXECUTABLE_TARGETS:%=container-run/%}
${UNIX_EXECUTABLE_TARGETS:%=container-run/%}:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# CONTAINER STEPS - GO-BINDATA
# ==============================================================================
PHONY+=container-run/bindata
container-run/bindata:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# CONTAINER STEPS - TEST
# ==============================================================================
PHONY+=container-run/test
container-run/test:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
PHONY+=container-run/test-update-all
container-run/test-update-all:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# CONTAINER STEPS - COMPRESSED BINARIES AND PACKAGES
# ==============================================================================
PHONY+=${COMPRESSED_EXECUTABLE_TARGETS:%=container-run/%}
${COMPRESSED_EXECUTABLE_TARGETS:%=container-run/%}:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
PHONY+=${RPM_EXECUTABLE_TARGETS:%=container-run/%}
${RPM_EXECUTABLE_TARGETS:%=container-run/%}:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# CONTAINER STEPS - RELEASE COMPRESSED BINARIES AND PACKAGES
# ==============================================================================
PHONY+=${RELEASE_EXECUTABLE_TARGETS%=container-run/%}
${RELEASE_EXECUTABLE_TARGETS:%=container-run/%}:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# CONTAINER STEPS - OTHER STUF
# ==============================================================================
PHONY+=container-run/clean
container-run/clean:
$(MAKE) container-run/ COMMAND=$(subst container-run/,,$@)
$(MAKE) container-run COMMAND=$(subst container-run/,,$@)
# GENERAL CONTAINER COMMAND
# ==============================================================================
PHONY+=container-run/
container-run/:
PHONY+=container-run
container-run:
${CONTAINER_RUNTIME} run \
--rm \
--volume ${PWD}:/workspace \