-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
82 lines (68 loc) · 2.71 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
81
82
# -*- coding: utf-8 -*-
#
# This file is part of Invenio
# Copyright (C) 2015, 2016 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.
#
# In applying this license, CERN does not
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.
addons:
postgresql: 9.4
notifications:
email: false
sudo: false
language: python
cache:
- pip
services:
- postgresql
python:
- 2.7
- 3.6
env:
global:
- _EXTRAS=docs,dev,tests
matrix:
- EXTRAS="$_EXTRAS,postgresql" SQLALCHEMY_DATABASE_URI=postgres+psycopg2://postgres@localhost:5432/workflows
- EXTRAS="$_EXTRAS,sqlite"
before_install:
- "travis_retry pip install --upgrade pip setuptools py"
- "travis_retry pip install twine wheel coveralls autosemver tox-travis"
- autosemver . version
- autosemver . changelog
install:
- "travis_retry pip install -r requirements-devel.txt"
- "travis_retry pip install .[$EXTRAS]"
before_script:
- psql -c 'create database workflows;' -U postgres
script:
- "./run-tests.sh"
after_success:
# Coverage report contains Docker paths. We replace them, so that we can run Coveralls.
- sed -i 's@\"/code/@'"\"$(pwd)/"'@g' .coverage
- coveralls
- sudo git clean -fdx
- sudo rm -rf .cache .tox .eggs
deploy:
provider: pypi
user: jirikuncar
password:
secure: lD3uH3wJi/i+wCV/tHUA7i4FvGZ2LzDtMmSphjht9FmTnO+CiKAgNG9BvtGa9ofvX/wK/Dl97ipAQcY30tSTtEbxZF9XSKJA82xjpWZY92vqgbKIio5ZkDuZfxTRsY9L+pSjswptRcZ7AHQdpbiyKHwS51wP4GwA2GTtW2/VXxLiyKL7RHtrzTOARpgmGEd1+EB5oPrsWN0gfR0bxqyWgIvYBD4MEkUvZb31OuKq/opVTDvW+NrZfC/K19TbULbBmAK4jUnv3z1ushCCq47241Vg457zhdr7nn0gsbwuvY+vSdKBvSMp53iElovVU3KsR0k24SS1cfpVnYTKjhEKpDHmBaIBiMZG2YXgzCTNB5V3+cQNPJHtsLdFHMlnigtIPx0af71wQtMd/I4B/wD9Uy3u+n8/c06XLgn5M1aoUWbQ9TyeJ4ZQUrh7aFtXPxOMbJpvBBnIK1GOIMEz2WMEmqRBsA5tIZiCdc8IGOklAC19+9h7tyKziCZcgmlGI6LwQiwEDwn20vTJkpli6VYObeM0vBsTW0TuU/m9SmA4efvsxLcMFOUl6d+k0ORlK/If/lgJ2ionybd5/rtMb6YpyuoVxgz/QRn/q0Urr778ydLPTonXZsobKDFtH3l8LPlRlOxNuVzphjlTgVl0AIfNicpiQyUTvckNPun9NLVXqaw=
distributions: "sdist"
on:
python: "3.6"