This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
forked from fjorba/invenio
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
69 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
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2013 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 # will start mysqld
- rabbitmq # will start rabbitmq-server
- redis # will start memcached
python:
- "2.7"
- "2.6"
install:
- "sudo apt-get update"
- "sudo apt-get install apache2 libapache2-mod-wsgi ssl-cert poppler-utils --fix-missing"
- "sudo a2enmod actions"
- "sudo a2enmod rewrite"
- "sudo mkdir /etc/apache2/ssl"
- "sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem"
- sudo pip install --upgrade pip
- sudo pip install --upgrade setuptools
- sudo pip install --upgrade distribute
- sudo pip install --upgrade virtualenvwrapper
- ". `which virtualenvwrapper.sh`"
- mkvirtualenv invenio
- workon invenio
- "pip install . --process-dependency-links --allow-all-external"
- "pybabel compile -f -d invenio/base/translations/"
- "inveniomanage config create secret-key"
- "inveniomanage config set CFG_EMAIL_BACKEND flask.ext.email.backends.console.Mail"
- "inveniomanage config set CFG_BIBSCHED_PROCESS_USER `whoami`"
before_script:
- "inveniomanage apache create-config"
- "sudo ln -s /home/travis/.virtualenvs/invenio/var/invenio.base-instance/apache/invenio-apache-vhost.conf /etc/apache2/sites-enabled/invenio.conf"
- "sudo ln -s /home/travis/.virtualenvs/invenio/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/a2ensite invenio || echo ':('" # enable Invenio web site
# - "sudo /usr/sbin/a2ensite invenio-ssl || echo ':('" # enable Invenio secure web site
- "sudo /usr/sbin/a2enmod ssl" # enable SSL module
- "sudo /usr/sbin/a2enmod xsendfile || echo ':('"
- "sudo apachectl configtest && sudo service apache2 restart || echo 'Apache failed ...'"
- "inveniomanage database init --yes-i-know || echo ':('"
- "inveniomanage database create || echo ':('"
# - "inveniomanage demosite create"
# - "inveniomanage demosite populate"
script:
- "python setup.py test"
# - "wget -O /dev/null http://localhost"