repaired structure and config.yaml for nspawn and docker
This commit is contained in:
parent
9b931f4585
commit
cd20f3fc96
16
Makefile
16
Makefile
@ -1,8 +1,14 @@
|
|||||||
|
DOCKER_IMAGE=ruby
|
||||||
|
|
||||||
default: test
|
default: test
|
||||||
|
|
||||||
build:
|
build-docker:
|
||||||
docker build -t ruby .
|
docker build -t $(DOCKER_IMAGE) .
|
||||||
docker run -d ruby
|
|
||||||
|
|
||||||
test:
|
test-nspawn:
|
||||||
$(MAKE) -C tests $@
|
MODULE=nspawn $(MAKE) -C tests test
|
||||||
|
|
||||||
|
test-docker: build-docker
|
||||||
|
MODULE=docker URL=docker=$(DOCKER_IMAGE) $(MAKE) -C tests test
|
||||||
|
|
||||||
|
test: test-nspawn test-docker
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
# A workflow with modularity-testing-framework is still uncertain.
|
|
||||||
# Only nspawn is actually used.
|
|
||||||
# https://meta-test-family.readthedocs.io/en/latest/index.html
|
|
||||||
#
|
|
||||||
# Installation
|
# Installation
|
||||||
# $ sudo dnf install modularity-testing-framework python2-avocado
|
# https://meta-test-family.readthedocs.io/en/latest/installation.html#installing-mtf
|
||||||
# $ sudo /usr/bin/pip install behave
|
|
||||||
test:
|
test:
|
||||||
|
mtf-env-set
|
||||||
mtf-generator
|
mtf-generator
|
||||||
MODULE=nspawn \
|
mtf -l *.py
|
||||||
python -d -m avocado run \
|
|
||||||
--filter-by-tags=-WIP \
|
|
||||||
/usr/share/moduleframework/tools/modulelint.py \
|
|
||||||
*.py
|
|
||||||
|
@ -2,10 +2,14 @@ document: modularity-testing
|
|||||||
version: 1
|
version: 1
|
||||||
name: ruby
|
name: ruby
|
||||||
modulemd-url: https://src.fedoraproject.org/cgit/modules/ruby.git/plain/ruby.yaml
|
modulemd-url: https://src.fedoraproject.org/cgit/modules/ruby.git/plain/ruby.yaml
|
||||||
|
packages:
|
||||||
|
rpms:
|
||||||
|
- ruby
|
||||||
module:
|
module:
|
||||||
rpm:
|
rpm:
|
||||||
repos:
|
url: http://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/26/Everything/x86_64/os/
|
||||||
- http://mirror.vutbr.cz/fedora/releases/26/Everything/x86_64/os/
|
docker:
|
||||||
|
url: docker.io/centos/ruby-23-centos7
|
||||||
test:
|
test:
|
||||||
version:
|
version:
|
||||||
- 'ruby -v'
|
- 'ruby -v'
|
||||||
|
Loading…
Reference in New Issue
Block a user