forked from opencobra/cobratoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.artenolis.yml
37 lines (30 loc) · 2.04 KB
/
.artenolis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: bash
before_install:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
script:
# set the environment variable CURRENT_DIR
- CURRENT_DIR=`pwd`
# change to the current directory
- cd $CURRENT_DIR
# launch the tests
- bash .artenolis/runtests.sh
after_success:
# submit coverage report
- if [[ "$MATLAB_VER" == "R2017b" && "$ARCH" == "Linux" ]]; then
bash <(curl -s https://codecov.io/bash) -f "!*.lst";
fi
# 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;
export GIT_LOCAL_BRANCH=${GIT_BRANCH##origin/};
echo $GIT_LOCAL_BRANCH;
ssh -t [email protected] 'GIT_LOCAL_BRANCH='"'$GIT_LOCAL_BRANCH'"' && echo $GIT_LOCAL_BRANCH && cd ~/tmp/COBRA.tutorials && git stash && git checkout $GIT_LOCAL_BRANCH && git pull origin $GIT_LOCAL_BRANCH';
ssh -t [email protected] 'GIT_LOCAL_BRANCH='"'$GIT_LOCAL_BRANCH'"' && echo $GIT_LOCAL_BRANCH && cd ~/tmp/cobratoolbox && git stash && git checkout $GIT_LOCAL_BRANCH && git pull origin $GIT_LOCAL_BRANCH && git submodule update --init';
ssh -t [email protected] 'GIT_LOCAL_BRANCH='"'$GIT_LOCAL_BRANCH'"' && echo $GIT_LOCAL_BRANCH && cd ~/tmp/cobratoolbox && ~/tmp/cobratoolbox/docs/prepareTutorials.sh -c=~/tmp/cobratoolbox -t=~/tmp/COBRA.tutorials -p=~/tmp -m=html,pdf,png';
cd ~/tmp/COBRA.tutorials && git stash && git checkout $GIT_LOCAL_BRANCH && git pull origin $GIT_LOCAL_BRANCH;
cd ~/tmp/cobratoolbox && git stash && git checkout $GIT_LOCAL_BRANCH && git pull origin $GIT_LOCAL_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