Update the pipeline to produce a tarball of the source upon every commit.
Unfortunately, it's not possible to preserve previous tarballs from run to run.
This commit is contained in:
parent
2f9d798574
commit
afba06504a
2 changed files with 18 additions and 18 deletions
|
@ -60,6 +60,18 @@ html:
|
||||||
paths:
|
paths:
|
||||||
- "*.html"
|
- "*.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
|
# run tests using the binary built before
|
||||||
test:debug:
|
test:debug:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -94,9 +106,10 @@ test:release:
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- mkdir public
|
- mkdir -p public/releases
|
||||||
- mv coverage public
|
- mv coverage public
|
||||||
- "mv *.html public"
|
- "mv *.html public"
|
||||||
|
- "mv *.tar.gz public/releases"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
@ -105,18 +118,5 @@ pages:
|
||||||
dependencies:
|
dependencies:
|
||||||
- html
|
- html
|
||||||
- test:debug
|
- test:debug
|
||||||
|
- dist
|
||||||
|
|
||||||
package:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- cp README.adoc README
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- advent
|
|
||||||
- NEWS
|
|
||||||
- COPYING
|
|
||||||
- README
|
|
||||||
- advent.6
|
|
||||||
dependencies:
|
|
||||||
- binary:release
|
|
||||||
- manpage
|
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -67,9 +67,9 @@ DOCS=COPYING NEWS README.adoc TODO \
|
||||||
# Can't use GNU tar's --transform, needs to build under Alpine Linux
|
# Can't use GNU tar's --transform, needs to build under Alpine Linux
|
||||||
advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
|
advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
|
||||||
@ls $(SOURCES) $(DOCS) | sed s:^:advent-$(VERS)/: >MANIFEST
|
@ls $(SOURCES) $(DOCS) | sed s:^:advent-$(VERS)/: >MANIFEST
|
||||||
@(cd ..; ln -s advent advent-$(VERS))
|
@(ln -s . advent-$(VERS))
|
||||||
(cd ..; tar -czvf advent/advent-$(VERS).tar.gz `cat advent/MANIFEST`)
|
(tar -T MANIFEST -czvf advent-$(VERS).tar.gz)
|
||||||
@(cd ..; rm advent-$(VERS))
|
@(rm advent-$(VERS))
|
||||||
|
|
||||||
dist: advent-$(VERS).tar.gz
|
dist: advent-$(VERS).tar.gz
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue