-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move setup/test tasks from openQA test suite here
It's easier to keep things up to date in one place...
- Loading branch information
1 parent
543d196
commit 8b69162
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|