forked from genialis/resolwe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
122 lines (111 loc) · 4.47 KB
/
.travis.yml
File metadata and controls
122 lines (111 loc) · 4.47 KB
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
115
116
117
118
119
120
121
122
# Global Travis CI step definitions that will be used by all jobs unless
# explicitly overriden in the jobs.include matrix.
language: python
dist: xenial
# We need to be able to install packages.
sudo: required
python: "3.6"
services:
- docker
- redis-server
addons:
postgresql: "10"
before_install:
# NOTE: We need to manually install ElasticSearch since we want to control
# the exact version we use instead of relying on the version shipped by
# Travis CI's python image.
# XXX: Version 6.7.0 should be used, but it doesn't work on Travis.
- curl -sSL -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.0.deb
- sudo dpkg -i --force-confnew elasticsearch-6.6.0.deb
- sudo service elasticsearch restart
install: pip install tox
script: tox -e $TOX_ENV
after_success:
- pip install codecov
- codecov -e TOX_ENV
# Build stages.
jobs:
include:
- stage: test
env:
- TOX_ENV=py36
# Set environment variables with information how to use the required
# services.
- RESOLWE_POSTGRESQL_USER=postgres
- RESOLWE_POSTGRESQL_PORT=5432
- RESOLWE_ES_PORT=9200
- RESOLWE_REDIS_PORT=6379
# NOTE: We need to disable SECCOMP as it is not supported on Travis CI.
- RESOLWE_DOCKER_DISABLE_SECCOMP=1
- stage: test
python: "3.7"
env:
- TOX_ENV=py37
# Set environment variables with information how to use the required
# services.
- RESOLWE_POSTGRESQL_USER=postgres
- RESOLWE_POSTGRESQL_PORT=5432
- RESOLWE_ES_PORT=9200
- RESOLWE_REDIS_PORT=6379
# NOTE: We need to disable SECCOMP as it is not supported on Travis CI.
- RESOLWE_DOCKER_DISABLE_SECCOMP=1
# NOTE: We undo almost all global Travis CI step definitions to ensure the
# following Tox environments are run without access to any service.
- stage: test
env: TOX_ENV=docs
services: []
addons: {}
before_install: skip
after_success: skip
- stage: test
env: TOX_ENV=linters
services: []
addons: {}
before_install: skip
after_success: skip
- stage: test
env: TOX_ENV=packaging
services: []
addons: {}
before_install: skip
after_success: skip
# NOTE: We undo many global Travis CI step definitions to ensure the
# following Tox environment only has access to the PostgreSQL service.
- stage: test
env:
- TOX_ENV=migrations
# Set environment variables with information how to use the PostgreSQL
# service.
- RESOLWE_POSTGRESQL_USER=postgres
- RESOLWE_POSTGRESQL_PORT=5432
services: []
before_install: skip
after_success: skip
# NOTE: We undo all the global Travis CI step definitions to ensure
# building of source and wheel distributions is performed in a clean
# environment.
- stage: release
services: []
addons: {}
before_install: skip
# Project uses setuptools_scm to determine the version from a SCM tag.
install: pip install setuptools_scm
script: skip
# NOTE: Due to the way Travis CI currently works, setting
# 'after_success: skip' would also result in skipping the deploy step.
# A work-around is to execute a dummy echo command.
# More info at: https://github.com/travis-ci/travis-ci/issues/8337.
after_success: echo "Skipping..."
deploy:
provider: pypi
user: genialis-bot
password:
secure: "W3h29ynEK6ZGpbhVWI9bvlMfr6JG/EltL7k2/ZCNLEv2eCKKj0VMFLiAtWixBXfJi9xct04MbYjNo0YznoAMgGaVrtt8XhQfvbpG3D8coer4N/MEW/8gZXn+nAA9QZDXC5THhnQT5PQofo7b8e1Rv0N/bMuADARdc+OSsZwgvasYrJvNSbSTRMuScOdp/xdxVYcT4+gk8Dtf4y7O7vw3w/dzLYHOOLWUyzPvgCHg7RCXAQ/rjO1EQdOOz8yQkoIGVcdNMTHjsHZ9bhGE+/K9YRdIdC4iwXrQDCcnwqxro2gcIkYQVzp2FObUv2KKWKGYzYAKR+p6Hd/6dWcOiG2uFH3dkCEPQxB8eofxLLunRtakRzViFjm+ijq2sYyOhw+Q9fcUOPcJCqECQ9IO6USoFZ+hkII49zvS+zNESDNNA1p78EAy7prf3uqO5iP1opNdAnmHxwIogsfaWX4MfaTUmaABMxMmLiQ00XBToNuEYaXpkTsqAJJq7itm9x69zAsUIg29YnfCYGVG5K5J+AH/fbRndQcgBdsPzIsxWOQzZ0XCVsMdT1dD4pyRrDbmpv7KEoGn6DhVkLYzUKhyEvPN8a17HS3xslRvqgGrojXC67kZa4e2Zl+4vRRSIJ7go8vpuFXXEyyXaLOTnorEelafvLJ0zXlIOmbHa17DD+dPtYc="
distributions: sdist bdist_wheel
on:
# Enable deploying tags. By default, Travis CI only deploys from the
# master branch.
tags: true
# Only build releases for tags starting with a Semantic Versioning 2.0
# compatible version.
if: tag =~ ^\d+\.\d+\.\d+