Skip to content
Permalink
Browse files

Add tests for Gitlab CI

  • Loading branch information...
neil-lindquist committed Jul 14, 2019
1 parent 4b63068 commit 21e74fd84e09288fc357f29319cd72ba9fe316dc
Showing with 19 additions and 0 deletions.
  1. +11 −0 .gitlab-ci.yml
  2. +8 −0 t/tests.lisp
@@ -0,0 +1,11 @@
variables:
LISP: sbcl-bin

before_script:
- PATH=~/.roswell/bin:$PATH
- curl -L https://raw.githubusercontent.com/roswell/roswell/release/scripts/install-for-ci.sh | bash
- echo "(:tree \"$CI_PROJECT_DIR/\")" > "$HOME/.config/common-lisp/source-registry.conf.d/ci.conf"

test:
script:
- roswell/run-fiveam.ros -l ci-utils/test :gitlab-ci-tests :noncoveralls-tests :base-tests
@@ -31,6 +31,14 @@
(is (eq (not (null (uiop:getenvp "APPVEYOR_PULL_REQUEST_NUMBER")))
(is-pr))))

(test :gitlab-ci-tests
(is-true (member :gitlab-ci *features*))
(is-false (member :circleci *features*))
(is (eq :gitlab-ci (platform)))
(is (string= (uiop:getenv "CI_COMMIT_REF_NAME") (branch)))
(is (eq (not (null (uiop:getenvp "CI_MERGE_REQUEST_ID")))
(is-pr))))

(test :user-tests
(is-true (member :not-ci *features*))
(is-false (member :ci *features*))

0 comments on commit 21e74fd

Please sign in to comment.
You can’t perform that action at this time.