forked from aio-libs/aiodocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 1.27 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
sudo: required
language: python
python:
- "3.5"
- "3.6"
env:
- DOCKER_VERSION=17.03
- DOCKER_VERSION=17.04
- DOCKER_VERSION=17.05
- DOCKER_VERSION=17.06
services:
- docker
install:
- docker run -d --privileged --net host --name ci-docker docker:$DOCKER_VERSION-dind dockerd -H tcp://localhost:27015
- docker run -d --name registry -p 5000:5000 registry
- docker run -d -p 5001:5001 --name registry2 -v `pwd`/tests/certs:/certs -e "REGISTRY_AUTH=htpasswd" -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" -e REGISTRY_AUTH_HTPASSWD_PATH=/certs/htpasswd -e REGISTRY_HTTP_ADDR=0.0.0.0:5001 -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt -e REGISTRY_HTTP_TLS_KEY=/certs/registry.key registry:2
- pip install -r requirements/ci.txt
script:
- python setup.py check -rms
- DOCKER_HOST=tcp://localhost:27015 tox
after_success:
- codecov
jobs:
include:
- stage: deploy
python: 3.6
deploy:
provider: pypi
user: andrew.svetlov
password:
secure: "KEmYrBVjl3WKRRtlk7zi5kev4eGRdccbyYpd6OngonMSYurZJRG2sILpiawyO9D9H+AXVsqRScH4aI46suuLdCUMcciMdLOkGnI0mHyx80UjoxNTo7yht+76xob4XD5AGErox8hWZU2t/CSknW60mAJaO4zLdVzpE/17j/9kNHQ="
distributions: sdist bdist_wheel
on:
tags: true
all_branches: true