File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ common=0
16
16
libraries=0
17
17
examples=0
18
18
sketches=0
19
+ staging=0
20
+ noplugin=0
19
21
20
22
while true ; do
21
23
case " $1 " in
@@ -36,6 +38,10 @@ while true; do
36
38
;;
37
39
sketches) sketches=1
38
40
;;
41
+ staging) staging=1
42
+ ;;
43
+ noplugin) noplugin=1
44
+ ;;
39
45
-* ) echo -e " error: unknown argument: ${1} .\nRun ${app_name} -h."
40
46
exit 1
41
47
;;
48
54
cd ..
49
55
50
56
URL=" https://codebender.cc"
57
+ URL_STAGING=" https://staging.codebender.cc"
51
58
SOURCE=" codebender_cc"
52
59
53
60
email_date=$( date +" %Y-%m-%d %H:%M:%S" )
@@ -69,6 +76,18 @@ elif [ "${libraries}" -eq 1 ]; then
69
76
elif [ " ${sketches} " -eq 1 ]; then
70
77
IDENTIFIER=" cb_compile_tester"
71
78
tox tests/compile_tester -- --url=${URL} --source=${SOURCE} -F --plugin
79
+ elif [ " ${staging} " -eq 1 ]; then
80
+ IDENTIFIER=" cb_compile_tester_staging"
81
+ tox tests/compile_tester -- --url=${URL_STAGING} --source=${SOURCE} -F --plugin
82
+ exit $?
83
+ elif [ " ${noplugin} " -eq 1 ]; then
84
+ IDENTIFIER=" noplugin"
85
+ tox tests/noplugin -- --url=${URL} --source=${SOURCE}
86
+ RETVAL=$?
87
+ if [ " ${RETVAL} " -eq 1 ]; then
88
+ mail -s
" Selenium Tests: ${IDENTIFIER} Failed To Run" [email protected] <<< ' Something went wrong with noplugin tests. Please check the logs.'
89
+ exit ${RETVAL}
90
+ fi
72
91
fi
73
92
74
93
DATE=$( date +" %Y-%m-%d" ) # Get the current date
You can’t perform that action at this time.
0 commit comments