diff options
-rw-r--r-- | .gitlab-ci.yml | 28 | ||||
-rw-r--r-- | tools/star/Makefile | 6 |
2 files changed, 31 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f8cbbb8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +stages: + - Build + - Release + +#moar: +# stage: Build +# image: alpine:latest +# before_script: +# - apk add --no-cache bash build-base git perl +# script: +# - perl Configure.pl --prefix=/usr/local --backend=moar --gen-moar +# artifacts: +# paths: +# - /usr/local + +tarball: + stage: Release + image: registry.gitlab.com/tyil/docker-perl6:alpine-dev-latest + before_script: + - apk add --no-cache git + script: + - git submodule sync + - git submodule update --init --recursive + - git submodule foreach git pull origin master + - make -f tools/star/Makefile release VERSION=$CI_COOMIT_REF_NAME + artifacts: + paths: + - release diff --git a/tools/star/Makefile b/tools/star/Makefile index 5053d54..0026a5c 100644 --- a/tools/star/Makefile +++ b/tools/star/Makefile @@ -74,11 +74,11 @@ manifest: modules/DBIish/lib patch: patch -p1 < patches/star-ver.patch -tarball: manifest patch +tarball: manifest [ -n "$(VERSION)" ] || ( echo "\nTry '$(MAKE) release VERSION=yyyy.mm'\n\n"; exit 1 ) [ -d $(STAR_REL) ] || ln -s . $(STAR_REL) - $(PREFIX) $(STAR_REL)/ MANIFEST | \ - $(TAR) -zcv -T - -f $(STAR_TGZ) + mkdir -p "release" + $(PREFIX) $(STAR_REL)/ MANIFEST | $(TAR) -zcv -T - -f "release/$(STAR_TGZ)" rm $(STAR_REL) release: tarball |