forked from inveniosoftware/invenio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (68 loc) · 2.37 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
71
72
73
74
75
76
77
78
79
80
# -*- 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
- elasticsearch
sudo: false
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"
addons:
apt:
packages:
- apache2
- git
- liblzma-dev
- nodejs
- poppler-utils
before_install:
- "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:
- "travis_retry pip install unittest2"
- "travis_retry pip install -r .travis-$REQUIREMENTS-requirements.txt --allow-all-external"
- "travis_retry pip install -e .[$REXTRAS] --process-dependency-links"
- "python setup.py compile_catalog"
- "npm update"
- "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"
- "inveniomanage database init --yes-i-know || echo ':('"
- "inveniomanage database create --quiet || echo ':('"
script:
- "sphinx-build -qnNW docs docs/_build/html"
- "python setup.py test"