Pin all pip dependencies (#11201)

Also some bash cleanup
This commit is contained in:
Jellyfrog
2020-02-25 14:42:16 +01:00
committed by GitHub
parent 8a2ce01dc1
commit 7f7c2d3db8

View File

@@ -8,14 +8,31 @@ if [ "$EXECUTE_BUILD_DOCS" != "true" ]; then
fi
pip3 install --upgrade pip
pip3 install --user mkdocs mkdocs-material "pymdown-extensions" "markdown"
pip3 install --user git+git://github.com/aleray/mdx_del_ins.git
pip3 install --user --requirement <(cat <<EOF
Click==7.0
future==0.18.2
Jinja2==2.11.1
livereload==2.6.1
lunr==0.5.6
Markdown==3.2.1
MarkupSafe==1.1.1
mkdocs==1.1
mkdocs-material==4.6.3
nltk==3.4.5
Pygments==2.5.2
pymdown-extensions==6.3
PyYAML==5.3
six==1.14.0
tornado==6.0.3
EOF
)
mkdir -p out
cd out
git init
git remote add origin $FULL_REPO
git remote add origin "$FULL_REPO"
git fetch
git config user.name "librenms-docs"
git config user.email "travis@librenms.org"
@@ -26,7 +43,7 @@ mkdocs build --clean
build_result=$?
# Only deploy after merging to master
if [ "$build_result" == "0" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then
if [ "$build_result" == "0" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
cd out/
touch .
git add -A .