vc-p4/.gitlab-ci.yml

47 lines
847 B
YAML
Raw Normal View History

image: silex/emacs:26.3-alpine-dev
stages:
- pre-package
- package
- deploy
pre-package:
stage: pre-package
before_script:
2020-05-14 05:46:38 +02:00
- rm -rf dist
- make clean
script:
- make
2020-05-14 05:46:38 +02:00
after_script:
- mkdir -p dist
- mv *.tar dist
artifacts:
paths:
2020-05-14 05:46:38 +02:00
- dist/*.tar
package:
stage: package
dependencies:
- pre-package
before_script:
2020-05-14 07:03:22 +02:00
- rm -rf bin/ public/
- mkdir bin/ public/
script: >
emacs --batch --load package --load package-x --funcall package-initialize
2020-05-14 05:53:36 +02:00
--eval "(let ((package-archive-upload-base \"public/\"))
2020-05-14 07:00:52 +02:00
(package-upload-file (car (sort (file-expand-wildcards \"dist/*.tar\") #'string>))))"
artifacts:
paths:
- public/
pages:
stage: deploy
only:
- master
dependencies:
- package
script: echo "Done"
artifacts:
paths:
- public