forked from gimli-org/gimli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkins_conda.sh
37 lines (27 loc) · 1.03 KB
/
.jenkins_conda.sh
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
# This script is for continuous integration using Jenkins (http://jenkins-ci.org/)
# It is called from the parent directory, i.e. bash -xe trunk/.jenkins.sh
echo "Starting automatic build #$BUILD_NUMBER on" `date`
start=$(date +"%s")
# Show last change to repo in build log
echo `git --git-dir trunk/.git log -1 --pretty="Last change by %cn (%h): %B"`
# Show system information
lsb_release -d
uname -a
conda env update
conda activate pgdev
which python
OMP_THREAD_LIMIT=1 python -c "import pygimli; pygimli.test(show=False, abort=True, htmlreport=\"build_tests.html\")"
# Build documentation
# Setup for 3D visualizations
# ------------------------------------------------
export DISPLAY=:99.0
export PYVISTA_OFF_SCREEN=True
# ------------------------------------------------
cd doc
make clean
make html
end=$(date +"%s")
echo "Ending automatic build #$BUILD_NUMBER".
diff=$(($end-$start))
echo "$(($diff / 60)) minutes and $(($diff % 60)) seconds elapsed."
# If this script fails, a mail with the log file will be send to [email protected].