Files
cinderlib/travis-scripts/setup-lvm.sh
Gorka Eguileor de1ee38d4d Add LVM CI job
This patch adds several CI jobs:

- PEP8
- Unit tests
- LVM

It also changes how we build our images. Now we only push a new image to
Docker Hub if the tests pass successfully.  And we only bother to build
the images if PEP8, Unit tests, and LVM jobs run successfully.
2018-09-06 08:43:28 +02:00

7 lines
152 B
Bash
Executable File

#!/usr/bin/env bash
set -ev
truncate -s 10G /root/cinder-volumes
lo_dev=`losetup --show -f /root/cinder-volumes`
vgcreate cinder-volumes $lo_dev
vgscan