Show More
@@ -0,0 +1,31 b'' | |||||
|
1 | # check required files | |||
|
2 | # run like this: rhodecode/tests/scripts/static-file-check.sh rhodecode/public/ | |||
|
3 | ||||
|
4 | STATIC_CHECK="\ | |||
|
5 | robots.txt \ | |||
|
6 | 502.html \ | |||
|
7 | js/scripts.min.js \ | |||
|
8 | js/rhodecode-components.js \ | |||
|
9 | css/style.css \ | |||
|
10 | css/style-polymer.css \ | |||
|
11 | css/style-ipython.css" | |||
|
12 | ||||
|
13 | static_path=$1 | |||
|
14 | echo "checking the path for static files in dir: '$static_path'" | |||
|
15 | ||||
|
16 | if [ ! -d $static_path ]; then | |||
|
17 | echo "path $static_path is not a valid directory" | |||
|
18 | exit 1 | |||
|
19 | fi | |||
|
20 | ||||
|
21 | for file in $STATIC_CHECK; | |||
|
22 | do | |||
|
23 | path=$static_path$file | |||
|
24 | printf "checking $path..." | |||
|
25 | if [ ! -f $path ]; then | |||
|
26 | echo "" | |||
|
27 | echo "Missing a static file:$path expected after web-build" | |||
|
28 | exit 1 | |||
|
29 | fi | |||
|
30 | printf "ok\n" | |||
|
31 | done No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now