~vonfry/zoxide.el

73fa4949356ccf2267378cc3bf87bb302d9bcec7 — Vonfry 8 months ago 104889b
ci: update to builds.sr.ht
5 files changed, 16 insertions(+), 23 deletions(-)

A .build.yml
R .gitlab/check.el => .ci/check.el
R .gitlab/deps.el => .ci/deps.el
D .gitlab-ci.yml
M Makefile
A .build.yml => .build.yml +13 -0
@@ 0,0 1,13 @@
image: alpine/latest
packages:
  - emacs
  - make
tasks:
  - check: |
      cd zoxide.el
      export CI_PROJECT_DIR=$(pwd)
      make check
  - build: |
      cd zoxide.el
      export CI_PROJECT_DIR=$(pwd)
      make

R .gitlab/check.el => .ci/check.el +2 -2
@@ 1,7 1,7 @@
(setq ci-dir (getenv "CI_PROJECT_DIR")
      gitlab-dir (expand-file-name ".gitlab" ci-dir))
      ci-script-dir (expand-file-name ".ci" ci-dir))

(load (expand-file-name "deps" gitlab-dir))
(load (expand-file-name "deps" ci-script-dir))

(package-install 'package-lint)


R .gitlab/deps.el => .ci/deps.el +0 -0
D .gitlab-ci.yml => .gitlab-ci.yml +0 -20
@@ 1,20 0,0 @@
stages:
  - check
  - build
  - deploy

default:
  image: ubuntu
  before_script:
    - apt update
    - apt install -y make ca-cacert emacs

check:
  script:
    - make check
  stage: check

build:
  script:
    - make
  stage: build

M Makefile => Makefile +1 -1
@@ 12,4 12,4 @@ clean:
check: check.zoxide

check.%: %.el
	$(BATCH) "$<" -l ".gitlab/check.el"
	$(BATCH) "$<" -l ".ci/check.el"