File tree Expand file tree Collapse file tree 9 files changed +18
-7
lines changed
Expand file tree Collapse file tree 9 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 88state
99build
1010dist
11- assets
1211Godeps /_workspace /pkg
1312tests /integration /.venv *
1413tests /integration /.tox
14+ * /* /* /* .pyc
15+ * /* /* /__pycache__
Original file line number Diff line number Diff line change 77tmp
88state
99build
10- assets
1110Godeps/_workspace/pkg
11+ tests/integration/.venv*
12+ tests/integration/.tox
13+ */*/*/*.pyc
14+ */*/*/__pycache__
Original file line number Diff line number Diff line change 1010/tests /integration /MANIFEST
1111/tests /integration /.venv *
1212/tests /integration /.tox
13+ * .pyc
14+ __pychache__
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ FROM debian:jessie
22RUN apt-get update && \
33 apt-get -y dist-upgrade && \
44 apt-get -y install locales sudo vim less curl wget git rsync build-essential syslinux isolinux xorriso \
5- libblkid-dev libmount-dev libselinux1-dev
5+ libblkid-dev libmount-dev libselinux1-dev genisoimage qemu-kvm python-pip
6+ RUN ln -s /usr/bin/genisoimage /usr/bin/mkisofs
67RUN locale-gen en_US.UTF-8
78RUN curl -sSL https://get.docker.com/ | sh
89
@@ -11,6 +12,8 @@ RUN curl -sSL https://get.docker.com/ | sh
1112#ENV LC_ALL en_US.UTF-8
1213#ENV TERM linux
1314
15+ RUN pip install tox
16+
1417ENV GOLANG_VERSION 1.4.2
1518RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz | tar -v -C /usr/src -xz
1619RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
Original file line number Diff line number Diff line change @@ -60,5 +60,7 @@ build-all: \
6060 $(DIST)/artifacts/rancheros.iso \
6161 $(DIST)/artifacts/iso-checksums.txt
6262
63+ integration-tests:
64+ cd tests/integration && tox
6365
64- .PHONY: build-all installer version bin/rancheros
66+ .PHONY: build-all installer version bin/rancheros integration-tests
Original file line number Diff line number Diff line change 99
1010docker build -t ros-build-base -f Dockerfile.build-base .
1111docker build -t ros-build -f Dockerfile.build .
12- ./scripts/docker-run.sh make -f Makefile.docker build-all
12+ ./scripts/docker-run.sh make -f Makefile.docker build-all integration-tests
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ if [ -n "$BIND_DIR" ]; then
1010fi
1111
1212docker rm -fv ros-build > /dev/null 2>&1 || true
13- exec docker run -i -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_ARGS --name=ros-build ros-build " $@ "
13+ exec docker run --privileged - i -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_ARGS --name=ros-build ros-build " $@ "
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ skipsdist=True
44
55[testenv]
66deps =-rrequirements.txt
7- commands =py.test --durations =20 rancherostest {posargs}
7+ commands =py.test -s - -durations =20 rancherostest {posargs}
88
99[testenv:flake8]
1010deps =flake8
You can’t perform that action at this time.
0 commit comments