Skip to content

Commit

Permalink
[documentation] adding git branch environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentheirendt committed Oct 5, 2018
1 parent e96d6f2 commit 352d062
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .artenolis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ after_success:
bash <(curl -s https://codecov.io/bash) -f "!*.lst";
fi

# deploy documentation GIT_BRANCH=$GIT_BRANCH
# deploy documentation
- if [[ "$MATLAB_VER" == "R2017b" && "$ARCH" == "Linux" && "$JENKINS_PULL_REQUEST" != "True" ]]; then
export PATH="/home/sbg-jenkins/.local/bin":$PATH;
pip install --upgrade --user -r docs/requirements.txt;
python ~/github_stats.py $(pwd)/docs/source/list_contributors.rst;
ssh -t sbg-jenkins@10.184.148.14 'cd ~/tmp/COBRA.tutorials && git checkout master && git pull origin master';
ssh -t sbg-jenkins@10.184.148.14 'cd ~/tmp/cobratoolbox && git checkout develop && git pull origin develop && git submodule update --init';
ssh -t sbg-jenkins@10.184.148.14 'GIT_BRANCH=$GIT_BRANCH && cd ~/tmp/COBRA.tutorials && git checkout $GIT_BRANCH && git pull origin $GIT_BRANCH';
ssh -t sbg-jenkins@10.184.148.14 'GIT_BRANCH=$GIT_BRANCH && cd ~/tmp/cobratoolbox && git checkout $GIT_BRANCH && git pull origin $GIT_BRANCH && git submodule update --init';
ssh -t sbg-jenkins@10.184.148.14 'cd ~/tmp/cobratoolbox && $(pwd)/docs/prepareTutorials.sh -c=$(pwd) -t=~/tmp/COBRA.tutorials -p=~/tmp -m=html,pdf,png';
cd ~/tmp/COBRA.tutorials && git checkout master && git pull origin master;
cd ~/tmp/cobratoolbox && git checkout develop && git pull origin develop && git submodule update --init;
cd ~/tmp/COBRA.tutorials && git checkout $GIT_BRANCH && git pull origin $GIT_BRANCH;
cd ~/tmp/cobratoolbox && git checkout $GIT_BRANCH && git pull origin $GIT_BRANCH && git submodule update --init;
python -c "from documenter.deploy import Documentation; doc = Documentation('github.com/opencobra/cobratoolbox', local_upstream='$(pwd)', ci='jenkins'); doc.deploy()";
bash .artenolis/generateZip.sh;
fi

0 comments on commit 352d062

Please sign in to comment.