-
Notifications
You must be signed in to change notification settings - Fork 9
/
.artenolis.yml
35 lines (27 loc) · 1.07 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
language: bash
before_install:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
script:
# set the environment variable CURRENT_DIR
- CURRENT_DIR=`pwd`
# update the data repository
- cd $PACER_DATA_PATH
- git checkout develop
- git pull origin develop
# change to the current directory
- cd $CURRENT_DIR
# launch the tests
- bash .artenolis/runtests.sh
after_success:
# submit coverage report
- if [[ "$MATLAB_VER" == "R2018b" && "$ARCH" == "Linux" ]]; then
bash <(curl -s https://codecov.io/bash) -f "!*.lst";
fi
# deploy documentation
- if [[ "$MATLAB_VER" == "R2018b" && "$ARCH" == "Linux" && "$JENKINS_PULL_REQUEST" != "True" ]]; then
export PATH="/home/jenkins/.local/bin":$PATH;
pip install --upgrade --user -r docs/requirements.txt;
export GIT_LOCAL_BRANCH=${GIT_BRANCH##origin/};
echo $GIT_LOCAL_BRANCH;
python -c "from documenter.deploy import Documentation; doc = Documentation('github.com/adhusch/PaCER', local_upstream='$(pwd)', ci='jenkins'); doc.deploy()";
fi