mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed test setup for Docker container
This commit is contained in:
parent
f2ffa179f1
commit
50d69fd428
@ -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
|
||||||
|
@ -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/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user