forked from AlexAlbala/Alter-Native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins.sh
executable file
·67 lines (39 loc) · 1.38 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env bash
# ALTERNATIVE_PATH
export ALTERNATIVE_HOME=`pwd`
# ALTERNATIVE_BIN_PATH
export ALTERNATIVE_BIN_PATH=$ALTERNATIVE_HOME/AlterNative.Core.bin/bin/Debug
# ALTERNATIVE_BIN_PATH
export ALTERNATIVE_BIN=$ALTERNATIVE_HOME/AlterNative.Core.bin/bin/Debug/AlterNative.Core.exe
# CPP_LIB_PATH
export ALTERNATIVE_CPP_LIB_PATH=$ALTERNATIVE_HOME/Lib
# ALTERNATIVE_TOOLS
export ALTERNATIVE_TOOLS_PATH=$ALTERNATIVE_HOME/Tools
# Shell Scripts
export PATH=$PATH:$ALTERNATIVE_HOME/Tools/ShellScripts
chmod +x $ALTERNATIVE_HOME/Tools/ShellScripts/alternative
xbuild AlterNative.Core.sln /t:Clean
xbuild AlterNative.Core.sln
cd Lib
if [ -z "$ALTERNATIVE_CPP_LIB_PATH" ]; then
declare -x ALTERNATIVE_CPP_LIB_PATH=`pwd`
fi
export ALTERNATIVE_LIB_BUILD=$ALTERNATIVE_CPP_LIB_PATH/build
export ALTERNATIVE_LIB_BIN=$ALTERNATIVE_LIB_BUILD/bin
if [ ! -d "$ALTERNATIVE_LIB_BIN" ]; then
mkdir $ALTERNATIVE_LIB_BIN
fi
cd $ALTERNATIVE_LIB_BIN
rm CMakeCache.txt
cmake -G "Unix Makefiles" ..
make
if [ ! -d "$ALTERNATIVE_LIB_BUILD/libfiles" ]; then
mkdir $ALTERNATIVE_LIB_BUILD/libfiles
fi
cp $ALTERNATIVE_LIB_BIN/src/libSystem.a $ALTERNATIVE_LIB_BUILD/libfiles
cp $ALTERNATIVE_LIB_BIN/src/public/gc/libgc-lib.a $ALTERNATIVE_LIB_BUILD/libfiles
cd $ALTERNATIVE_CPP_LIB_PATH
cd $ALTERNATIVE_HOME/Tests/public
mono RegressionTest.exe -R
cd $ALTERNATIVE_HOME/Tests/private
mono RegressionTest.exe -R