forked from opencobra/cobratoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.artenolis.yml
37 lines (30 loc) · 1.79 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/jenkins/.local/bin":$PATH;
pip install --upgrade --user -r docs/requirements.txt;
python $ARTENOLIS_SCRIPTS_PATH/src/github_stats.py $(pwd)/docs/source/list_contributors.rst;
export GIT_LOCAL_BRANCH=${GIT_BRANCH##origin/};
echo $GIT_LOCAL_BRANCH;
scp "$(pwd)/.artenolis/deployTutorials.sh" [email protected]:$ARTENOLIS_ROOT_PATH_MAC/scratch/.;
ssh -t [email protected] 'source ~/.profile && GIT_LOCAL_BRANCH='"'$GIT_LOCAL_BRANCH'"' && sh $ARTENOLIS_ROOT_PATH_MAC/scratch/deployTutorials.sh';
scp -r [email protected]:$ARTENOLIS_ROOT_PATH_MAC/scratch/tutorials $ARTENOLIS_DATA_PATH/cobratoolbox/.;
cd $ARTENOLIS_DATA_PATH/repos/COBRA.tutorials && git stash && git checkout $GIT_LOCAL_BRANCH && git pull origin $GIT_LOCAL_BRANCH;
cd $ARTENOLIS_DATA_PATH/repos/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