forked from cucumber/cucumber-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 971 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SHELL := /usr/bin/env bash
default:
mvn clean install
.PHONY: default
VERSION = $(shell mvn help:evaluate -Dexpression=project.version -q -DforceStdout 2> /dev/null)
NEW_VERSION = $(subst -SNAPSHOT,,$(VERSION))
CURRENT_BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
clean:
mvn clean release:clean
.PHONY: clean
version:
@echo ""
@echo "The next version of Cucumber-JVM will be $(NEW_VERSION) and released from '$(CURRENT_BRANCH)'"
@echo ""
.PHONY: version
update-cck:
ifndef CCK_VERSION
@echo -e "\033[0;31mCCK_VERSION is not defined. Can't update CCK :-(\033[0m"
exit 1
endif
git clone --branch v$$CCK_VERSION [email protected]:cucumber/compatibility-kit.git target/compatibility-kit
cd target/compatibility-kit/devkit && npm install && npm run generate-ndjson
rm -rf compatibility/src/test/resources/features/*
cp -r target/compatibility-kit/devkit/samples/* compatibility/src/test/resources/features
rm -rf target/compatibility-kit
.PHONY: update-cck