forked from opencobra/cobratoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.artenolis.yml
31 lines (24 loc) · 1.21 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
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;
ssh sbg-jenkins@10.184.148.14 'cd ~/jenkins/workspace/COBRAToolbox-branches-auto-macOS/MATLAB_VER/R2017b/label/macOS-biocore && ./docs/prepareTutorials.sh -c=$(pwd) -t=$(pwd)/tutorials -p=~/tmp -m=html,pdf,png';
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