From 66c3a5d67b7580c11165bac9564e9550136fd231 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 4 Sep 2015 17:14:38 +0200 Subject: [PATCH] travis: addition of invenio.cfg Signed-off-by: Jiri Kuncar --- .travis.invenio.cfg | 42 ++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 17 ++++++++--------- 2 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 .travis.invenio.cfg diff --git a/.travis.invenio.cfg b/.travis.invenio.cfg new file mode 100644 index 00000000..4fefa93c --- /dev/null +++ b/.travis.invenio.cfg @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Invenio. +# Copyright (C) 2015 CERN. +# +# Invenio is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# Invenio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Invenio; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +"""Travis-CI configuration.""" + +import getpass + +CFG_BIBSCHED_PROCESS_USER = getpass.getuser() + +DEBUG = False +SECRET_KEY = 'MY_SECRET' + +# Disable all automatic asset building - false is /usr/bin/false. +ASSETS_AUTO_BUILD = False + +PACKAGES = [ + 'invenio_records', + 'invenio_collections', + 'invenio_search', + 'invenio_knowledge', + 'invenio_access', + 'invenio_accounts', + 'invenio_formatter', + 'invenio_upgrader', + 'invenio.base', +] diff --git a/.travis.yml b/.travis.yml index 06bff6d3..d76618c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ # along with Invenio; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + notifications: email: false @@ -25,6 +26,7 @@ sudo: false services: - mysql - redis + - elasticsearch language: python @@ -42,24 +44,21 @@ python: before_install: - "travis_retry pip install --upgrade pip" - - "travis_retry pip install mock twine wheel" + - "travis_retry pip install mock twine wheel coveralls" - "python requirements.py --extras=$REXTRAS --level=min > .travis-lowest-requirements.txt" - "python requirements.py --extras=$REXTRAS --level=pypi > .travis-release-requirements.txt" - "python requirements.py --extras=$REXTRAS --level=dev > .travis-devel-requirements.txt" + - "mkdir -p ${VIRTUAL_ENV}/var/invenio.base-instance/" + - "cp .travis.invenio.cfg ${VIRTUAL_ENV}/var/invenio.base-instance/invenio.cfg" install: - - "travis_retry pip install -e git+https://github.com/inveniosoftware/invenio.git#egg=Invenio" + - "travis_retry pip install -e git+https://github.com/inveniosoftware/invenio#egg=invenio" - "travis_retry pip install -r .travis-$REQUIREMENTS-requirements.txt --allow-all-external" - "travis_retry pip install -e .[$REXTRAS]" before_script: -# - "inveniomanage config create secret-key" -# - "inveniomanage config set CFG_EMAIL_BACKEND flask_email.backends.console.Mail" -# - "inveniomanage config set CFG_BIBSCHED_PROCESS_USER `whoami`" -# - "inveniomanage config set PACKAGES ['invenio_accounts', 'invenio_collections', 'invenio_records', 'invenio_formatter', 'invenio.base']" -# - "inveniomanage config set CFG_TMPDIR /tmp" - - "inveniomanage database init --yes-i-know || echo ':('" - - "inveniomanage database create --quiet || echo ':('" + - "inveniomanage database init --yes-i-know" + - "inveniomanage database create --quiet" script: - "sphinx-build -qnN docs docs/_build/html"