forked from OmniSharp/generator-aspnet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
e2etest.sh
executable file
·107 lines (86 loc) · 2.24 KB
/
e2etest.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# You can use this script to manually test the yeoman generators.
# There are some issues in this script (indicated by TODOs below)
# upgrade to the latest released kvm
KRE_FEED=https://www.nuget.org/api/v2
TESTDIR=~/tmp-yotest
export KRE_FEED="$KRE_FEED"
echo 'Deleting packages folder at ~/.kpm/packages/'
rm -r -f ~/.kpm/packages/
source kvm.sh
echo 'installing kvm beta3'
kvm install 1.0.0-beta3 -p
kvm list
if [ -d $TESTDIR ]
then
echo "Deleting directory at [$TESTDIR]"
rm -r -f $TESTDIR
fi
echo 'Creating directory at $TESTDIR'
mkdir $TESTDIR
pushd $TESTDIR
# TODO: Figure out how to pass params to yo to avoid user interaction here
echo '>>> Create a default Empty app'
yo aspnet
pushd EmptyApplication
kpm restore
kpm build
popd
echo '>>> Create a default Console app'
yo aspnet
pushd ConsoleApplication
kpm restore
kpm build
# TODO: When running the script I get a sharing violation, not sure why
# but you can see Hello World was printed to the console
echo '>>> Running k run, press ENTER to quit'
k run
popd
echo '>>> Create a default Web app'
yo aspnet
pushd WebApplication
kpm restore
kpm build
# TODO: When running kestrel users cannot enter input so kestrel cannot be stopped
# echo '>>> Running k run, press Q then ENTER to quit'
# k kestrel
popd
# TODO: Replace with Web API Test
#echo '>>> Create a default MVC app'
#yo aspnet
#pushd MvcApplication
#kpm restore
#kpm build
# TODO: When running kestrel users cannot enter input so kestrel cannot be stopped
# echo '>>> Running k run, press Q then ENTER to quit'
# k kestrel
#popd
echo '>>> Create a default Web API app'
yo aspnet
pushd WebAPIApplication
kpm restore
kpm build
# TODO: When running kestrel users cannot enter input so kestrel cannot be stopped
# echo '>>> Running k run, press Q then ENTER to quit'
# k kestrel
popd
#echo '>>> Create a default Nancy app'
#yo aspnet
#pushd NancyApplication
#kpm restore
#kpm build
# TODO: When running kestrel users cannot enter input so kestrel cannot be stopped
# echo '>>> Running k run, press Q then ENTER to quit'
# k kestrel
#popd
echo '>>> Create a default Class library project'
yo aspnet
pushd ClassLibrary
kpm restore
kpm build
popd
#echo '>>> Create a default Unit test project'
#yo aspnet
#pushd UnitTest
#kpm restore
#kpm build
#popd