This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
114 lines (96 loc) · 4.74 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017 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:
chrome: stable # https://docs.travis-ci.com/user/chrome
dist: trusty # Chrome driver fails if not trusty dist
notifications:
email: # sent to the committer and the author
on_success: never # default: always
on_failure: always # default: always
webhooks: # Gitter integration
urls:
- https://webhooks.gitter.im/e/f51458fa35835a48601a
# options: [always|never|change]
on_success: never # default: always
on_failure: always # default: always
on_start: never # default: never
# not passing travis yaml validator, but specified in the doc
# on_cancel: never # default: always
# on_error: always # default: always
sudo: false
language: python
matrix:
fast_finish: true
cache:
- pip
services:
- redis
env:
- REQUIREMENTS=lowest E2E="no" ES_VERSION=2.4.6
- REQUIREMENTS=release DEPLOY=true E2E="yes" ES_VERSION=2.4.6
- REQUIREMENTS=devel E2E="yes" ES_VERSION=2.4.6
python:
- "2.7"
- "3.5"
before_install:
- mkdir /tmp/elasticsearch
- wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1
- "/tmp/elasticsearch/bin/plugin install -b mapper-attachments"
- "/tmp/elasticsearch/bin/elasticsearch &"
# Gecko webdriver: https://github.com/mozilla/geckodriver/releases/
- "PATH=$PATH:$HOME/webdrivers"
- "if [ ${E2E} == 'yes' ] && [ ! -f $HOME/webdrivers/chromedriver ]; then wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P $HOME/webdrivers; unzip -d $HOME/webdrivers $HOME/webdrivers/chromedriver_linux64.zip; fi"
- "nvm install 6; nvm use 6"
- "travis_retry pip install --upgrade pip setuptools py"
- "travis_retry pip install twine wheel coveralls requirements-builder"
- "requirements-builder -e all --level=min setup.py > .travis-lowest-requirements.txt"
- "requirements-builder -e all --level=pypi setup.py > .travis-release-requirements.txt"
- "requirements-builder -e all --level=dev --req requirements-devel.txt setup.py > .travis-devel-requirements.txt"
- "./scripts/setup-npm.sh"
install:
# FIXME remove when there is a true version of invenio-archivematica
- "travis_retry pip install git+https://github.com/inveniosoftware/invenio-archivematica.git#egg=invenio-archivematica"
- "travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt"
- "travis_retry pip install --process-dependency-links -e .[all]"
- "./scripts/setup-assets.sh"
before_script:
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
- "export DISPLAY=:99.0"
- "export E2E_WEBDRIVER_BROWSERS='Chrome'"
- "if [ ${E2E} == 'yes' ]; then sh -e /etc/init.d/xvfb start; sleep 5; fi"
script:
- ./run-tests.sh # E2E tests are skipped if E2E env is set to 'no'
after_success:
- coveralls
deploy:
provider: pypi
user: inveniosoftware
password:
secure: "HtQx/0iqKVcIdVKLx71Llufk5qmZtpYEac9Ic9ACHj7Ns/JMRBn1lP4vshMm2cWyZfzq+w0HtDO0I5KhiugBIA2vqIqqWYgV9HurZqLUusufEWL1Te6wrG+FtZzB5e77VLL7X+1fYyfiHeRU75SFRiwB1m95ALA8ghs0fjV2YAiZYN7L4NUQ0P7lOqx62azD1iBLmH94mBE6yKP3eRPmeOUTGXb5mXe/K7rRak8vhbfarVn0U0KHgzYFomANg/vhqcqAfmm600CYxEuQrfHFQWe5WNDf6yRVdkrYwIzWOGPZM7cDabZV4LpvuA0lcD26bSIflVJ6nlJtdWY7/l1HM2gtMfDW6d0iCLeBXTziIrz7g7sbPpzYalU/AVKJ7yyiSRN1uLrzOnB6cPYFWEJWGlrPcs/astDjSMKXNivJuKnGtF8eq81NNcZfVb8MhheOpmOhh87wzqU4mDwfLat2aB0vlYrKQN7e72LwOqUL1MbPVoR1+qdh8JwzJdwNNc6OCryg/gDm667vGEaMjybAL8Qv2UA7vWpizGQyYBKuoRcvPIA8CUN3uOaqKCHrX5wdnqSK8IjPlp1bsETJ+mnOaye8jYSfZDCsdBnB71wwM7NV24SE4AAgYre8rLt7b1bAiCdZs8TlF7ulwC5RGyJnqgvE2JBeZBkBxxuBFSQX7i0="
distributions: "compile_catalog sdist bdist_wheel"
on:
tags: true
python: "2.7"
repo: remileduc/e-ternity
condition: $DEPLOY = true