This repository has been archived by the owner on May 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
70 lines (63 loc) · 2.82 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# -*- coding: utf-8 -*-
#
# This file is part of Invenio Demosite.
# Copyright (C) 2013 CERN.
#
# Invenio Demosite 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 Demosite 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
language: python
python:
- "2.7"
install:
- "sudo apt-get update"
- "sudo apt-get install apache2 libapache2-mod-wsgi libapache2-mod-xsendfile ssl-cert poppler-utils --fix-missing"
- "sudo a2enmod actions"
- "sudo a2enmod version"
- "sudo a2enmod rewrite"
- "sudo a2enmod ssl || echo ':('" # enable SSL module
- "sudo a2enmod xsendfile || echo ':('"
- "sudo mkdir -p /etc/apache2/ssl"
- "mkdir -p $VIRTUAL_ENV/var/tmp/"
- "sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem"
- "travis_retry pip install nose"
- "travis_retry pip install -r requirements.txt"
- "inveniomanage config create secret-key"
- "inveniomanage config set CFG_SITE_URL http://localhost"
- "inveniomanage config set CFG_SITE_SECURE_URL https://localhost"
- "inveniomanage config set CFG_EMAIL_BACKEND flask.ext.email.backends.console.Mail"
- "inveniomanage config set CFG_BIBSCHED_PROCESS_USER `whoami`"
- "inveniomanage config set LESS_BIN /bin/true" # silent the warnings
- "inveniomanage config set CLEANCSS_BIN /bin/true"
- "inveniomanage config set REQUIREJS_BIN /bin/true"
- "inveniomanage config set UGLIFYJS_BIN /bin/true"
- "inveniomanage config set ASSETS_DEBUG True" # ignore assets issues
- "inveniomanage config set LESS_RUN_IN_DEBUG False"
- "inveniomanage config set REQUIREJS_RUN_IN_DEBUG False"
before_script:
- "inveniomanage collect"
- "inveniomanage apache create-config"
- "sudo /usr/sbin/a2dissite default || echo ':('"
- "sudo mv $VIRTUAL_ENV/var/invenio.base-instance/apache/invenio-apache-vhost.conf /etc/apache2/sites-enabled/invenio"
- "sudo mv $VIRTUAL_ENV/var/invenio.base-instance/apache/invenio-apache-vhost-ssl.conf /etc/apache2/sites-enabled/invenio-ssl"
- "inveniomanage database init --yes-i-know"
- "inveniomanage database create"
- "sudo apachectl configtest && sudo service apache2 restart || echo 'Apache failed ...'"
- "inveniomanage demosite populate --yes-i-know"
script:
- "python setup.py test"