aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-10-30 14:34:04 +0100
committerPatrick Spek <p.spek@tyil.nl>2019-10-30 14:34:04 +0100
commit176e22fe71baecd761a4af70ad0247e641f170ed (patch)
tree661990ee5b43c3e7eb2df6607c8cc61a0fb6aaa9
parent9f30d89eb842c5a926b8f07e3eb1bb8b8ef453b4 (diff)
Attempt to build this for GitLab CI
-rw-r--r--.gitlab-ci.yml28
-rw-r--r--tools/star/Makefile6
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