Skip to content

Commit 9d09634

Browse files
add commands to deploy doc
1 parent 320f00d commit 9d09634

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.artenolis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ after_success:
2424
- if [[ "$MATLAB_VER" == "R2018b" && "$ARCH" == "Linux" ]]; then
2525
bash <(curl -s https://codecov.io/bash) -f "!*.lst";
2626
fi
27+
28+
# deploy documentation
29+
- if [[ "$MATLAB_VER" == "R2018b" && "$ARCH" == "Linux" && "$JENKINS_PULL_REQUEST" != "True" ]]; then
30+
export PATH="/home/jenkins/.local/bin":$PATH;
31+
pip install --upgrade --user -r docs/requirements.txt;
32+
export GIT_LOCAL_BRANCH=${GIT_BRANCH##origin/};
33+
echo $GIT_LOCAL_BRANCH;
34+
python -c "from documenter.deploy import Documentation; doc = Documentation('github.com/adhusch/PaCER', local_upstream='$(pwd)', ci='jenkins'); doc.deploy()";
35+
fi

0 commit comments

Comments
 (0)