Skip to content

Commit ee1edd5

Browse files
author
kuba--
committed
make upgrade
Signed-off-by: kuba-- <[email protected]>
1 parent dbbc29e commit ee1edd5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ CI_REPOSITORY ?= https://github.com/src-d/ci.git
77
CI_PATH ?= $(shell pwd)/.ci
88
CI_VERSION ?= v1
99

10+
UPGRADE_PRJ ?= "gopkg.in/src-d/go-mysql-server.v0"
11+
UPGRADE_REV ?= $(shell curl --silent "https://api.github.com/repos/src-d/go-mysql-server/commits/master" -H'Accept: application/vnd.github.VERSION.sha')
12+
1013
MAKEFILE := $(CI_PATH)/Makefile.main
1114
$(MAKEFILE):
1215
git clone --quiet --branch $(CI_VERSION) --depth 1 $(CI_REPOSITORY) $(CI_PATH);
@@ -19,5 +22,5 @@ bblfsh-client:
1922

2023
dependencies: bblfsh-client
2124

22-
mysql-upgrade:
23-
go run tools/rev-upgrade/main.go -p "gopkg.in/src-d/go-mysql-server.v0" -r $(shell curl --silent "https://api.github.com/repos/src-d/go-mysql-server/commits/master" -H'Accept: application/vnd.github.VERSION.sha')
25+
upgrade:
26+
go run tools/rev-upgrade/main.go -p $(UPGRADE_PRJ) -r $(UPGRADE_REV)

0 commit comments

Comments
 (0)