forked from erikbra/aspnet.xunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·60 lines (50 loc) · 1.1 KB
/
build.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
#!/bin/bash
if ! [ -x "$(command -v mono)" ]; then
echo >&2 "Could not find 'mono' on the path."
exit 1
fi
echo ""
echo "Installing .NET Execution Environment..."
echo ""
. tools/dnvm.sh
dnvm install 1.0.0-rc2-16351 -r coreclr -u
if [ $? -ne 0 ]; then
echo >&2 ".NET Execution Environment installation has failed."
exit 1
fi
dnvm install 1.0.0-rc2-16351 -u
if [ $? -ne 0 ]; then
echo >&2 ".NET Execution Environment installation has failed."
exit 1
fi
echo ""
echo "Restoring packages..."
echo ""
dnvm use 1.0.0-rc2-16351
dnu restore
if [ $? -ne 0 ]; then
echo >&2 "Package restore has failed."
exit 1
fi
echo ""
echo "Building packages..."
echo ""
dnu pack src/xunit.runner.dnx
if [ $? -ne 0 ]; then
echo >&2 "Build packages has failed."
exit 1
fi
echo ""
echo "Running tests..."
echo ""
dnx -p test/test.xunit.runner.dnx test -parallel none
if [ $? -ne 0 ]; then
echo >&2 "Running tests on Mono has failed."
exit 1
fi
dnvm use 1.0.0-rc2-16351 -r coreclr
dnx -p test/test.xunit.runner.dnx test -parallel none
if [ $? -ne 0 ]; then
echo >&2 "Running tests on CoreCLR has failed."
exit 1
fi