1
0
Fork 0

Integration test each individual package

In order to differentiate better between the two types of tests, rename the test
commands to unit-test.
This commit is contained in:
Tom Willemse 2020-01-08 12:13:55 -08:00
parent bd805dadcb
commit 3c95635890
2 changed files with 57 additions and 21 deletions

View file

@ -139,62 +139,95 @@ package:
paths: paths:
- bin/ - bin/
test-oni-alert: unit-test-oni-alert:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-alert TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-alert TEST_ARCHIVE=$(realpath bin/)
test-oni-bookmark: unit-test-oni-bookmark:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-bookmark TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-bookmark TEST_ARCHIVE=$(realpath bin/)
test-oni-conf: unit-test-oni-conf:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-conf TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-conf TEST_ARCHIVE=$(realpath bin/)
test-oni-css: unit-test-oni-css:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-css TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-css TEST_ARCHIVE=$(realpath bin/)
test-oni-elisp: unit-test-oni-elisp:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-elisp TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-elisp TEST_ARCHIVE=$(realpath bin/)
test-oni-grep: unit-test-oni-grep:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-grep TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-grep TEST_ARCHIVE=$(realpath bin/)
test-oni-highlight-indent-guides: unit-test-oni-highlight-indent-guides:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-highlight-indent-guides TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-highlight-indent-guides TEST_ARCHIVE=$(realpath bin/)
test-oni-php: unit-test-oni-php:
stage: unit-test stage: unit-test
dependencies: dependencies:
- package - package
script: make test-oni-php TEST_ARCHIVE=$(realpath bin/) script: make unit-test-oni-php TEST_ARCHIVE=$(realpath bin/)
integration-test: integration-test-oni-alert:
stage: integration-test stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config image: registry.gitlab.com/ryuslash/emacs-config
dependencies: dependencies:
- package - package
script: script: make integration-test-oni-alert TEST_ARCHIVE=$(realpath bin/)
- cd test/integration
- bats . integration-test-oni-autohotkey:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config
dependencies:
- package
script: make integration-test-oni-autohotkey TEST_ARCHIVE=$(realpath bin/)
integration-test-oni-bats:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config
dependencies:
- package
script: make integration-test-oni-bats TEST_ARCHIVE=$(realpath bin/)
integration-test-oni-bookmark:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config
dependencies:
- package
script: make integration-test-oni-bookmark TEST_ARCHIVE=$(realpath bin/)
integration-test-oni-docker:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config
dependencies:
- package
script: make integration-test-oni-docker TEST_ARCHIVE=$(realpath bin/)
integration-test-oni-scheme:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config
dependencies:
- package
script: make integration-test-oni-scheme TEST_ARCHIVE=$(realpath bin/)
deploy: deploy:
only: only:

View file

@ -62,7 +62,7 @@ install-%:
--eval '(package-refresh-contents)' \ --eval '(package-refresh-contents)' \
--eval "(package-install '$*)" --eval "(package-install '$*)"
test-%: install-% unit-test-%: install-%
emacs --batch \ emacs --batch \
--load oni-package.el \ --load oni-package.el \
--funcall package-initialize \ --funcall package-initialize \
@ -71,5 +71,8 @@ test-%: install-%
--eval "(setq ert-batch-backtrace-right-margin nil)" \ --eval "(setq ert-batch-backtrace-right-margin nil)" \
--funcall ert-run-tests-batch-and-exit --funcall ert-run-tests-batch-and-exit
integration-test-%: install-%
bats test/integration/$*.bats
clean: clean:
rm -fv $(FILES) rm -fv $(FILES)