Commit Graph

51 Commits (a30d9f26556b9445ecb909ea2f3d88aebd6c44e7)

Author SHA1 Message Date
Alexandre Flament 54afe37e18 [mod] .travis.yml: build documentation automatically on the master branch 4 years ago
Adam Tauber 9c2679c31d [mod] remove py2 from travis tests 4 years ago
Dalf a7862ba3c1 [mod] .travis.yml: add Python 3.7 and Python 3.8 4 years ago
Markus Heiser 41f002b0ea travis: remove before_cache handle
BTW: separate env output in the travis log

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser 09a4062505 makefile.python: partial revert off 9b48ae47, adds py2 support back
revert "makefile.python: ... drop build support py2" to get back Py2 support.
TPy2 support need virtualenv installed by the OS.

BTW: log environment and python version in travis's install phase

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser 565493b57d travis: use Makefile target travis.codecov to install codecov
fix travis build error [1]::

  The command "local/py3/bin/pip install codecov" failed and exited with 127

Use the correct pip (python environment) from build environment::

  $(PY_ENV_BIN)/python -m pip

[1] https://travis-ci.org/github/asciimoo/searx/jobs/669701405#L590

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser e340bb5bd1 travis: remove platform option arm64
[1] https://github.com/asciimoo/searx/pull/1910#issuecomment-607244871

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser adc3a855e6 Revert "travis: disable cache"
This reverts commit eb87b07d51.
4 years ago
Markus Heiser eb87b07d51 travis: disable cache
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser 9e32fb27e7 [fix] travis: Permission denied: '/home/travis/.cache/pip/...'
Fix "Permission denied: '/home/travis/.cache/" errors from travis build [1].

Change owner https://docs.travis-ci.com/user/caching/#caches-and-read-permissions
and remove old log in the *before_caching* phase:

  https://docs.travis-ci.com/user/caching/#before_cache-phase

About pip cache see: https://docs.travis-ci.com/user/caching/#pip-cache

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

[1] https://travis-ci.org/github/asciimoo/searx/jobs/669664131#L220
4 years ago
Markus Heiser 9b48ae47ec makefile.python: hardening - drop virtualenv, drop build support py2
From py3.3 on a subset of virtualenv is built-in, so you can run '-m venv' ot of
the box.

- replace: $(PY_ENV_BIN)/pip --> $(PY_ENV_BIN)/python -m pip
- remove obsolete virtualenv-exe target and adjust VTENV_OPTS
- remove obsolete msg-pip-exe target
- print list of py launchers available from $(PY_ENV_BIN) to the log
- fix hard coded ./local

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser 8c145ff2fe travis: build on os: linux, dist: bionic, use platform arch: arm64
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser b18880985c travis: make travis build more verbose
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Dalf d425e26e80 [fix] fix travis build 4 years ago
Markus Heiser ca65d41da5 [fix] travis: reomve 'make style' from travis build
Commit 8a16903a removes Makefile target style

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser d7523071a0 travis: use build environment from Makefile
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Dalf 609ac5795a .travis.yml: robot tests: remove the xvfb dependency 5 years ago
Dalf fbe40001d3 Update Docker image
See #1561 , use uwsgi and Alpine Linux

Volume:
/var/log/uwsgi contains error log for 2 days (file uwsgi.log)
/etc/searx contains the settings.yml and uwsgi.ini files.
The docker image creates them if they don't exist.
The two files can be modified after the first run. See below.

Environement variables:
MORTY_URL : external URL of Morty
MORTY_KEY : base64 encoded key
BASE_URL : external URL of Searx
BIND_ADDRESS : internal HTTP port to listen to

Labels : org.label-schema.schema.*

Parameters:
-h : display this help
-d : will update the settings and quit immediately (settings.yml and uwsgi.ini)
-f : always update the settings (previous version saved with suffix .old).
     without this parameter, the new settings are copied with suffix .new

When the Docker image contains newer settings:
- without -f parameter: the new versions are copied to /etc/searx/settings.yml.new and /etc/searx/uwsgi.ini.new.
- with -f parameter:  the old versions are renamed with .old suffix. The new version replaces /etc/searx/settings.yml and /etc/searx/uwsgi.ini

Build using "./manage.sh docker_build", add "push" as parameter also push the Docker image.
The script requires a git repository to work (it makes sure that the last git tag matches searx/version.py)
"git describe" is used to create a meaningful version.
Example : 0.15.0-90-49c5bcb4-dirty (dirty means that the docker image was made with uncommited changes).

Use "docker inspect -f {{.Config.Labels.version}} searx" to get the version of an existing image.

.dockerignore based on .gitignore

.travis.yml: include docker stage
5 years ago
Marc Abonce Seguin 5947c05649 add CI test for python3.5
Python3.5 is still the default Python3 version in
Debian Stretch (stable) and Ubuntu 16.04 LTS
https://packages.debian.org/source/stretch/python3-defaults
https://packages.ubuntu.com/source/xenial/python/python3-defaults
6 years ago
Alexandre Flament 5dc8b271f0 [mod] simplify manage.sh
- npm install less@2.7 less-plugin-clean-css grunt-cli is moved inside manage.sh
- if it is possible to source manage.sh to update the PATH (to start grunt)
- tidy the help documentation
- update the geckodriver version to 0.19.1
7 years ago
marc db27c6fa5f fix less to stable version
3.0 is still alpha and currently breaks when building styles
7 years ago
Alexandre Flament fb587f11fe Switch to code-cov 7 years ago
Alexandre Flament d87eb4da61 [mod] travis build : travis uses ./manage.sh to install the geckodriver
./manage.sh don't build css that are built by ./manage.sh grunt_build
7 years ago
Alexandre Flament 57dc6b625f [fix] travis build : various fix about grunt builds 7 years ago
Alexandre Flament d0cebd6e77 [fix] fix selenium tests 7 years ago
Alexandre Flament 10a24bdc2c [enh] add simple theme (WIP) 7 years ago
Adam Tauber 52e615dede [enh] py3 compatibility 7 years ago
Adam Tauber 684ceab1c3 [enh] add latest firefox addon to travis 8 years ago
Adam Tauber ecd2e1fac0 [fix] add missing gecko executable to travis 8 years ago
Adam Tauber 257e52954a [enh][fix] update to latest dependencies ++ fix tests & travis test runner
WARNING: dependency changes
8 years ago
a01200356 a5238ce8d1 [fix] install npm packages locally on .travis.yml
for some reason installing grunt globally caused travis test to fail.
8 years ago
Adam Tauber 28a9b5113e [mod] update core deps with dev deps 8 years ago
Adam Tauber 52323a4b4e [fix] grunt action name 8 years ago
Adam Tauber 3498b7c53f [fix] manage.sh command names 8 years ago
Adam Tauber 53979a7bf7 [mod] remove buildout/makefile infrastructure 8 years ago
Thomas Pointhuber cf932ee6a0 [fix] yml 9 years ago
Thomas Pointhuber e9c33572e9 [fix] also cache "/.cache/pip" 9 years ago
Thomas Pointhuber ae5bf6e49f [enh] Migrating Travis CI from legacy to container-based infrastructure
This patch should speedup testing with Travis CI using caching and
container-based infrastructure.

source:
- http://docs.travis-ci.com/user/migrating-from-legacy/
- http://docs.travis-ci.com/user/caching/
9 years ago
Cqoicebordel ccf3d80107 Stop running twice the tests on Travis 9 years ago
Adam Tauber 8151585918 [fix] static file paths 10 years ago
Thomas Pointhuber 427ee531be [fix] .travis.yml - add grunt-cli to npm install 10 years ago
Thomas Pointhuber f72f66a0cf [fix] fix .travis.yml to install npm dependent packages 10 years ago
Thomas Pointhuber e687f5c290 [enh][oscar_template] split js-files and compile them together 10 years ago
Gabor Nagy bcc08879f9 Add coveralls.io 10 years ago
Thomas Pointhuber e8b74c9e09 using npm instead of apt-get in .travis.yml 10 years ago
Thomas Pointhuber 3032e15e3a fix .travis.yml 10 years ago
Thomas Pointhuber c62528d848 fix .travis.yml 10 years ago
Thomas Pointhuber 6d9affc1fc fix .travis.yml 10 years ago
Thomas Pointhuber 425ec3b707 Using .less instead of .css
to generate the .css file from the .less file run: $make styles
10 years ago
asciimoo 9602af3654 [mod] travis notification mods 10 years ago