-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjenkins.sh
executable file
·54 lines (38 loc) · 908 Bytes
/
jenkins.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
TOP_DIR=$(pwd)
NUNIT="$(pwd)/hooks/binfiles/NUnit-2.6.4/bin/nunit-console.exe"
NUNIT_ARGS='-noshadow -exclude "JenkinsDisable" -xml=nunit-result.xml -nologo'
function quitOnFailure
{
if [ ! $? -eq 0 ]; then exit 1
fi
}
function doTests
{
mono $NUNIT $1 $NUNIT_ARGS;
quitOnFailure;
}
cd ${TOP_DIR}
git reset .
git checkout .
git clean -dxf
bash .paket/get_paket.sh
mono .paket/paket.exe restore
cd src_c
rm -rf build
mkdir build
cd build
cmake .. && make -j4 && make aitest
quitOnFailure
cd ${TOP_DIR}
cd bindings/csharp/ArtomatixImageLoader
xbuild ArtomatixImageLoader.sln
quitOnFailure
doTests ArtomatixImageLoaderTests/bin/x64/Debug/ArtomatixImageLoaderTests.dll
cd ${TOP_DIR}
virtualenv env
source ./env/bin/activate
pip install -r ./bindings/python/requirements.txt
python ./bindings/python/setup.py install
python ./bindings/python/tests.py
exit $?