3BASE_DIR=$(dirname `readlink -f $0`)
5SEARX_DIR="$BASE_DIR/searx"
9 pip install --upgrade -r "$BASE_DIR/requirements.txt"
12update_dev_packages() {
14 pip install --upgrade -r "$BASE_DIR/requirements-dev.txt"
18 echo '[!] Running pep8 check'
20 # E402 module level import not at top of file
21 # W503 line break before binary operator
22 pep8 --max-line-length=120 --ignore "E402,W503" "$SEARX_DIR" "$BASE_DIR/tests"
26 echo '[!] Running unit tests'
27 python -m nose2 -s "$BASE_DIR/tests/unit"
31 echo '[!] Running python test coverage'
32 PYTHONPATH=`pwd` python -m nose2 -C --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit"
38 echo '[!] Running robot tests'
39 PYTHONPATH=`pwd` python "$SEARX_DIR/testing.py" robot
51 lessc -x "$BASE_DIR/searx/static/$1" "$BASE_DIR/searx/static/$2"
55 echo '[!] Building styles'
56 build_style themes/default/less/style.less themes/default/css/style.css
57 build_style themes/default/less/style-rtl.less themes/default/css/style-rtl.css
58 build_style themes/courgette/less/style.less themes/courgette/css/style.css
59 build_style themes/courgette/less/style-rtl.less themes/courgette/css/style-rtl.css
60 build_style less/bootstrap/bootstrap.less css/bootstrap.min.css
61 build_style themes/oscar/less/oscar/oscar.less themes/oscar/css/oscar.min.css
62 build_style themes/pix-art/less/style.less themes/pix-art/css/style.css
66 grunt --gruntfile "$SEARX_DIR/static/themes/oscar/gruntfile.js"
70 pybabel compile -d "$SEARX_DIR/translations"
74 [ -z "$1" ] || echo "Error: $1\n"
75 echo "Searx manage.sh help
79 grunt_build - Build js files
81 locales - Compile locales
82 pep8_check - Pep8 validation
83 py_test_coverage - Unit test coverage
84 robot_tests - Run selenium tests
85 styles - Build less files
86 tests - Run all python tests (pep8, unit, robot)
87 unit_tests - Run unit tests
88 update_dev_packages - Check & update development and production dependency changes
89 update_packages - Check & update dependency changes
93if type $ACTION 1>/dev/null; then
96 help "action not found"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list