-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.sh
53 lines (43 loc) · 956 Bytes
/
test.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
#!/bin/bash
set -e
process_result() {
success_message=$'\e[32mSuccess!'
failure_message=$'\e[91mTest failed.'
if [ $1 -eq 0 ]
then
echo $success_message
else
echo $failure_message
exit 1
fi
}
echo $'\e[34mSASjs Version'
sasjs v
process_result $?
echo $'\e[34mSASjs Create'
sasjs create test1
process_result $?
echo $'\e[34mSASjs Create Minimal App'
sasjs create test2 -t minimal
process_result $?
echo $'\e[34mSASjs Create React App'
sasjs create test3 -t react
process_result $?
echo $'\e[34mSASjs Create Angular App'
sasjs create test4 -t angular
process_result $?
echo $'\e[34mSASjs Create SAS Only App'
sasjs create test5 -t sasonly
process_result $?
# Turning off this test until the seed apps have been migrated to the new target format
# echo $'\e[34mSASjs Compile Build'
# cd test5
# sasjs cb
# process_result $?
# cd -
echo $'\e[34mCleaning up...'
rm -rf test1
rm -rf test2
rm -rf test3
rm -rf test4
rm -rf test5