sudo: false cache: - pip - npm - directories: - $HOME/.cache/pip addons: firefox: "latest" language: python python: - "2.7" - "3.6" before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - npm install less@2.7 less-plugin-clean-css grunt-cli - export PATH=`pwd`/node_modules/.bin:$PATH - ./manage.sh install_geckodriver ~/drivers - export PATH=~/drivers:$PATH install: - ./manage.sh npm_packages - ./manage.sh update_dev_packages - pip install codecov flake8 before_script: # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics script: - ./manage.sh styles - ./manage.sh grunt_build - ./manage.sh tests after_success: - ./manage.sh py_test_coverage - codecov notifications: irc: channels: - "irc.freenode.org#searx" template: - "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}" on_success: change