-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (51 loc) · 2.21 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
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CESNET.
#
# Invenio OpenID Connect is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
notifications:
email: false
sudo: false
language: python
matrix:
fast_finish: true
cache:
- pip
env:
global:
- ES7_DOWNLOAD_URL="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-linux-x86_64.tar.gz"
- ES_HOST=127.0.0.1
matrix:
- REQUIREMENTS=release ES=$ES7_DOWNLOAD_URL EXTRAS=tests
python:
- "3.8"
before_install:
- "travis_retry pip install --upgrade pip setuptools py"
- "travis_retry pip install twine wheel coveralls requirements-builder pip-tools"
- "requirements-builder -e $EXTRAS --level=pypi setup.py > .travis-release-requirements.in"
- "pip-compile -U --verbose -o .travis-release-requirements.txt .travis-release-requirements.in"
- cat .travis-release-requirements.txt
- mkdir /tmp/elasticsearch
- wget -O - $ES | tar xz --directory=/tmp/elasticsearch --strip-components=1
- "/tmp/elasticsearch/bin/elasticsearch &"
- sleep 10
install:
- "travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt"
- "travis_retry pip install -e .[$EXTRAS]"
- "travis_retry pip install -e .[validate]"
- "travis_retry pip install -e sample"
script:
- "./run-tests.sh"
after_success:
- coveralls
deploy:
provider: pypi
user: "__token__"
password:
secure: "jqiaUfOnfDCG2v02AKxIWR4nsCpBiKGtYERlVpWcKoob1n9g2WhapmgOkO0sujDqw3x6U4D4L3/BYBdzVsDGxM7zJEr2Jnu5xT750CEc6YGvkZ4+FYpLxDgR5D6J/QUR/+kTV3rgmIiiBhFVuQBTjKf9h5fEK8xZTDUL9LeIk/W8le01vU32wUE2hXCpAOeUMQ3oiJ3CpiAPS0ENTFJv2JxCDEhaoAgJhI7CkXyJhGuj6oWweFz+VXSlN2LPL9Ki1oSrPCjeunW+1zpHb41XHnLSbQ2Ix4k+VRGXBYzcw/DjWp6POtaqVrWeOq6qSOEFyS6+2NyRoWJHRvNj8zqAZAAys/kp72kxWMfajoaFGbsh5tyt/3pLAN9WVA9ZXCwdxqiF9F7qmWQvfh5JvIqKzOftHU1oFtbm5ChDoAzU2hajNuYgl4TdC1oeRadQ0EhxM/TttvFb9BQ7eOiu9FCdoBAwRuTDvHdFycvqFqJkeUjOW7OywExsHl5q/+bYIasLDDDxj8rGG+l2bfxS4PvSwkdcXTLnqXjtoSNTTZJqz6OQNiYhP2hGzz24PAKntWlvYuholp7t62qZd+eKGIRB222w8Lmg/WLufkiREdYN4ZkJpzQ5W4kFHcW58Arvahkg579btSgNuCD9UOn7GpzCqKlnXOAjkhcg04IRZGwiFvk="
on:
tags: true
branch: master
distributions: "sdist bdist_wheel"
skip_existing: true