Fixed test setup for Docker container

This commit is contained in:
squidfunk 2017-11-21 22:07:08 +01:00 committed by Martin Donath
parent f2ffa179f1
commit 50d69fd428
2 changed files with 2 additions and 3 deletions

View File

@ -51,10 +51,9 @@ docker build -t $TRAVIS_REPO_SLUG .
# Prepare build regression test # Prepare build regression test
pushd /tmp pushd /tmp
mkdocs new test && cd test mkdocs new test && cd test
echo "theme: \n name: material" >> mkdocs.yml
# Test Docker image build # Test Docker image build
docker run --rm -it -v `pwd`:/docs $TRAVIS_REPO_SLUG build docker run --rm -it -v `pwd`:/docs $TRAVIS_REPO_SLUG build --theme material
# Return to original directory # Return to original directory
popd popd

View File

@ -33,7 +33,7 @@ COPY setup.py setup.py
# Perform build and cleanup artifacts # Perform build and cleanup artifacts
RUN \ RUN \
apk add -U openssh git && \ apk add --no-cache openssh git && \
python setup.py install 2>/dev/null && \ python setup.py install 2>/dev/null && \
rm -rf /tmp/* rm -rf /tmp/*