Skip to content

Commit

Permalink
Merge pull request #12444 from hennevogel/refactoring/openqa-test-master
Browse files Browse the repository at this point in the history
Move setup/test tasks from openQA test suite here
  • Loading branch information
hennevogel committed Apr 25, 2022
2 parents e611433 + 5981089 commit 5a404e5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/t/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ DEPENDENCIES
rspec-expectations

BUNDLED WITH
1.17.1
2.3.7
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 5a404e5

Please sign in to comment.