Skip to content

Commit

Permalink
Build previous version on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alombarte committed Jan 31, 2025
1 parent fbd1031 commit c5c066f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: all build test

VERSION:="v2.9"
PREVIOUS_VERSION="v2.8"
BIN:="docker run -it -v \"${PWD}:/workspace\" jsonschema"

all: build test
Expand All @@ -12,6 +13,9 @@ build:
eval ${BIN} bundle ${VERSION}/_root.json --resolve ${VERSION} --without-id > ${VERSION}/krakend.json
eval ${BIN} fmt ${VERSION}/krakend.json

eval ${BIN} bundle ${PREVIOUS_VERSION}/_root.json --resolve ${PREVIOUS_VERSION} --without-id > ${PREVIOUS_VERSION}/krakend.json
eval ${BIN} fmt ${PREVIOUS_VERSION}/krakend.json

test:
eval ${BIN} test ./test/${VERSION} --resolve ${VERSION}

eval ${BIN} test ./test/${PREVIOUS_VERSION} --resolve ${PREVIOUS_VERSION}

0 comments on commit c5c066f

Please sign in to comment.