# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2013, 2014, 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. notifications: email: false services: - mysql - redis - mongodb language: python cache: - apt - pip env: - REQUIREMENTS=lowest REXTRAS=docs - REQUIREMENTS=release REXTRAS=docs - REQUIREMENTS=devel REXTRAS=docs python: # FIXME: the build times out on Python 2.6 (inveniosoftware/invenio#1789) # - "2.6" - "2.7" before_install: - "sudo add-apt-repository -y ppa:chris-lea/node.js" - "sudo apt-get update" - "travis_retry pip install --upgrade pip" - "travis_retry pip install mock" - "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" install: - "sudo apt-get -qy install apache2 libapache2-mod-wsgi libapache2-mod-xsendfile ssl-cert poppler-utils git subversion nodejs --fix-missing" - "sudo a2enmod actions" - "sudo a2enmod version || echo ':('" - "sudo a2enmod rewrite" - "sudo mkdir /etc/apache2/ssl" - "sudo /usr/sbin/make-ssl-cert generate-default-snakeoil /etc/apache2/ssl/apache.pem" - "travis_retry pip install unittest2" - "travis_retry pip install -r .travis-$REQUIREMENTS-requirements.txt --allow-all-external --quiet" - "travis_retry pip install -e .[$REXTRAS] --quiet --process-dependency-links" - "python setup.py compile_catalog" - "sudo su -c \"npm update\"" - "sudo su -c \"npm install --silent -g bower less clean-css uglify-js requirejs\"" # All the step below this points are solely for test purposes, don't use them # to setup your invenio installation. Please do RTFM instead (INSTALL.rst). - "./scripts/setup_devmode.sh" before_script: - "inveniomanage apache create-config" - "sudo ln -s $VIRTUAL_ENV/var/invenio.base-instance/apache/invenio-apache-vhost.conf /etc/apache2/sites-enabled/invenio.conf" - "sudo ln -s $VIRTUAL_ENV/var/invenio.base-instance/apache/invenio-apache-vhost-ssl.conf /etc/apache2/sites-enabled/invenio-ssl.conf" - "sudo /usr/sbin/a2dissite *default* || echo ':('" - "sudo /usr/sbin/a2enmod ssl" # enable SSL module - "sudo apachectl configtest && sudo service apache2 restart || echo 'Apache failed ...'" - "inveniomanage database init --yes-i-know || echo ':('" - "inveniomanage database create --quiet || echo ':('" # - "inveniomanage demosite populate --yes-i-know" script: - "sphinx-build -qnNW docs docs/_build/html" - "python setup.py test" # - "wget -O /dev/null http://localhost"