Unfortunately, it's not possible to preserve previous tarballs from run to run.
paths:
- "*.html"
+dist:
+ stage: build
+ before_script:
+ - apk update
+ - apk add make asciidoc
+ script:
+ - export VERS=${CI_COMMIT_REF_NAME}
+ - make dist -e
+ artifacts:
+ paths:
+ - "*.tar.gz"
+
# run tests using the binary built before
test:debug:
stage: test
pages:
stage: deploy
script:
- - mkdir public
+ - mkdir -p public/releases
- mv coverage public
- "mv *.html public"
+ - "mv *.tar.gz public/releases"
artifacts:
paths:
- public
dependencies:
- html
- test:debug
+ - dist
-package:
- stage: deploy
- script:
- - cp README.adoc README
- artifacts:
- paths:
- - advent
- - NEWS
- - COPYING
- - README
- - advent.6
- dependencies:
- - binary:release
- - manpage
# Can't use GNU tar's --transform, needs to build under Alpine Linux
advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
@ls $(SOURCES) $(DOCS) | sed s:^:advent-$(VERS)/: >MANIFEST
- @(cd ..; ln -s advent advent-$(VERS))
- (cd ..; tar -czvf advent/advent-$(VERS).tar.gz `cat advent/MANIFEST`)
- @(cd ..; rm advent-$(VERS))
+ @(ln -s . advent-$(VERS))
+ (tar -T MANIFEST -czvf advent-$(VERS).tar.gz)
+ @(rm advent-$(VERS))
dist: advent-$(VERS).tar.gz