introduce spec file and related build scripts

The repository now contains a Vagrantfile for running the testing script
against an RPM package created locally using `make rpm`. To run this
test use `make vagrant-test`. setup.py was also modified to adhere to
packaging guidelines and not to install system-level executables.
The lincense is now included in the Python package using the MANIFEST.in
file.
This commit is contained in:
Martin Sehnoutka 2019-07-17 15:53:21 +02:00 committed by Lars Karlitski
parent c5ec09a230
commit 3c19420b3e
7 changed files with 141 additions and 11 deletions

View file

@ -1,8 +1,8 @@
base:
$(OSBUILD) --input $(BASE_INPUT) --output $(BASE_OUTPUT) 1-create-base.json
up:
vagrant up
web:
$(OSBUILD) --input $(BASE_OUTPUT) --output $(WEB_OUTPUT) 2-configure-web-server.json
install-deps:
vagrant provision
qcow2:
$(OSBUILD) --input $(WEB_OUTPUT) --output $(QCOW2_OUTPUT) 3-compose-qcow2.json
run-tests-remotely:
vagrant ssh -c 'pushd /vagrant; sudo python3 run-tests.py'

15
test/Vagrantfile vendored Normal file
View file

@ -0,0 +1,15 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<-SCRIPT
sudo dnf install qemu-system-x86 /vagrant/osbuild*.rpm -y
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "fedora/30-cloud-base"
config.vm.box_version = "30.20190425.0"
config.vm.provider "libvirt" do |v|
v.memory = 4096
end
config.vm.provision "shell", inline: $script
end