Skip to content

Commit

Permalink
Move setup/test tasks from openQA test suite here
Browse files Browse the repository at this point in the history
It's easier to keep things up to date in one place...
  • Loading branch information
hennevogel committed Apr 13, 2022
1 parent 543d196 commit 8b69162
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dist/t/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.ONESHELL:

all:
@echo "Targets: install test dbclean installclean"

install:
zypper -vv -n --gpg-auto-import-keys in --force-resolution --no-recommends chromedriver xorg-x11-fonts libxml2-devel libxslt-devel ruby3.1-devel
git clone --single-branch --branch master --depth 1 https://github.com/openSUSE/open-build-service.git /tmp/open-build-service
cd /tmp/open-build-service/dist/t
bundle install

test:
cd /tmp/open-build-service/dist/t
bundle exec rspec --format documentation

dbclean:
cd /srv/www/obs/api/
@echo "DISABLE_DATABASE_ENVIRONMENT_CHECK=$(DISABLE_DATABASE_ENVIRONMENT_CHECK) should be =1"
@echo "SAFETY_ASSURED=$(SAFETY_ASSURED) should be =1"
rake db:drop db:create db:setup RAILS_ENV=production

installclean:
zypper -n rm -u chromedriver xorg-x11-fonts libxml2-devel libxslt-devel ruby2.7-devel
rm -rf /tmp/open-build-service

0 comments on commit 8b69162

Please sign in to comment.