Unverified Commit 092ac4be authored by Eric Timmons's avatar Eric Timmons
Browse files

Switch to clci for Gitlab CI

parent eb3eb6c6
Loading
Loading
Loading
Loading
Loading
+30 −30
Original line number Diff line number Diff line
include:
  - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
  - remote: 'https://gitlab.com/clci/gitlab-ci/-/raw/release/v1-stable/ci-cache.yml'
  - remote: 'https://gitlab.com/clci/gitlab-ci/-/raw/release/v1-stable/clpm.yml'
  - project: 'clci/gitlab-ci'
    ref: release/v2-dev
    file:
      - definitions.gitlab-ci.yml
  - project: 'clci/gitlab-ci'
    ref: release/v2-dev
    file:
      - test-pipeline.gitlab-ci.yml
      - release-pipeline.gitlab-ci.yml
    rules:
      - if: '$PIPELINE_TYPE != "clpm-dep-update"'
  - project: 'clci/gitlab-ci'
    ref: release/v2-dev
    file:
      - clpm-dep-update-pipeline.gitlab-ci.yml
    rules:
      - if: '$PIPELINE_TYPE == "clpm-dep-update"'

.test:
  extends:
    - .clci ci cache per job
  before_script:
    - mkdir ~/common-lisp
    - git clone https://gitlab.common-lisp.net/asdf/asdf.git ~/common-lisp/asdf
    - git -C ~/common-lisp/asdf checkout "3.3.5"
    - !reference [.clci clpm install, script]
    - !reference [.clci clpm configure, script]
    - $CLPM bundle install --no-resolve
  script:
    - $CLPM bundle exec -- cl '(load "scripts/test.lisp")'
variables:
  # Neither of these have package local nickname support.
  CLCI_TEST_CLISP: "no"
  CLCI_TEST_CMUCL: "no"

test abcl:
  image: clfoundation/abcl
  extends: .test

test ccl:
  image: clfoundation/ccl
  extends: .test

test ecl:
  image: clfoundation/ecl
  extends: .test

test sbcl:
  image: clfoundation/sbcl
  extends: .test
# This section is not strictly required, but prevents Gitlab CI from launching
# multiple redundent pipelines when a Merge Request is opened.
workflow:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
      when: never
    - if: '$CI_COMMIT_BRANCH'
    - if: '$CI_COMMIT_TAG'

scripts/ci-test.lisp

0 → 100644
+1 −0
Original line number Diff line number Diff line
(asdf:test-system :asdf-inferred-components)

scripts/test.lisp

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
(require "asdf")

;; This is needed because we can't use the ASDF included with the
;; implementation. I really need to get CLPM to manage ASDF versions as well...
(asdf:initialize-source-registry '(:source-registry
                                   (:tree (:home "common-lisp"))
                                   :inherit-configuration))

(asdf:test-system :asdf-inferred-components)