Skip to content

Commit

Permalink
travis: addition of invenio.cfg
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
  • Loading branch information
jirikuncar committed Sep 4, 2015
1 parent 99241f6 commit 66c3a5d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 9 deletions.
42 changes: 42 additions & 0 deletions .travis.invenio.cfg
Original file line number Diff line number Diff line change
@@ -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',
]
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -25,6 +26,7 @@ sudo: false
services:
- mysql
- redis
- elasticsearch

language: python

Expand All @@ -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"
Expand Down

0 comments on commit 66c3a5d

Please sign in to comment.