This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
80 lines (70 loc) · 3.02 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
sudo: false
dist: trusty
# Only build develop, master, and version tags (which are considered branches
# by Travis). PRs still get built.
branches:
only:
- develop
- master
- /^\d+\.\d+(\.\d+)?$/
language: python
matrix:
include:
- python: '2.7'
env: TOXENV=py27
- python: '3.4'
env: TOXENV=py34
- python: '3.5'
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36
- python: '3.7'
env: TOXENV=py37
dist: xenial
sudo: required
- python: '3.6'
env: TOXENV=lint
# Docker dev image
- sudo: required
services: docker
python: '3.6'
env:
- IMAGE_NAME=praekeltfoundation/marathon-acme
- REGISTRY_USER=praekeltorgdeploy
- secure: "JSuiWKoxXNr77SYOuYC1RBXl4vXthOBmMxdKJ5ZjPNCkcAC1WeiFlEAYSA1rw+iuNIi0SWhU8ATTOVj+iKWH3aYx3RolCngMf18juFKGktUdQ17EimK2KzGeieyaBIuwRg+sYelgydC4J+d7pqDGAwhaqvU+xTJeKQUhavUIiymNrAZee008f/ncrporBHPTFHQIWbexYdd2ta/zO9Y3VOQqxJP5qp9E6uRAvvl9ZkNIFGcuRYylPbFIiR5QF6guEXks8bnhlnfflxSJUoX9z6NYeG/kQXyk84p4a2fRm7wuFn4XSbjY+G0Rik4tPq1+rBI7QdKM1YOctiej/Mmb0WD8sEkBGlQDwBb5oozdPY3MtqmtFcSXgf7o0yJWaoLt+l1LBKY1NQg+n59Ls7jnxX+pmR5d42W9lDLHPVVadyun+n4aMUhkbTYxlr1y4vAaAoogB6V9K4QRKekJ4i9mnTiVg29XLuqkZpKQjH6BNMMpy1kPML9tGx9cV+5dUGn2qC097YqmepvUCEIcRs0GJt1I7fNgb0VvyFQu3S/gFqVKVL8qZLWJFCs+TrII6x6ePp+iq5SQvST5YvWQ7JvZY9bnUnqsCBpa0Q1te2jyRk4AVJvd8oPBmt4z2OiJFahWnUvAbXduTW9fH9KhwbSw1nxi1lTSbpw/l+PLbocORKc="
# Clear unused steps
before_install: []
install: []
after_success: []
before_script:
- docker pull $IMAGE_NAME:develop || true
script:
- python setup.py bdist_wheel
- docker build --pull --cache-from $IMAGE_NAME:develop -t $IMAGE_NAME .
before_deploy:
- pip install docker-ci-deploy==0.3.0
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
deploy:
provider: script
script: dcd -t develop -V "$(git rev-parse --short HEAD)" -L praekeltfoundation/marathon-acme
on:
branch: develop
cache: pip
before_install:
- pip install --upgrade pip
install:
- pip install tox codecov
script:
- tox
after_success:
- if [[ "$TOXENV" =~ py* ]]; then codecov; fi
deploy:
provider: pypi
skip_cleanup: true
user: praekelt.org
password:
secure: YeufUcQa0CkVMJ+1KMAYvfKmAeODrxxxnoFx0Id9jpUeCc6OmLNzX60KgMf/1nW7VLksB+qwx/nXmXCfuwJ2y5C2Cgqn0LhM3aBXagvoqePTqrnGLuoE1YkYrNb6Q5l/QKJrVzYgINzNT2lHTwzM9cA0d3eEsUm58wtt7zRrkmgRGdLz4eL2ApgKI9rtc3fx2iiwOjPwHnuclIvv4IWE+IxzUZQ5PMlZzpV3X2mqkGir0+WL4ySo+lgY+Em96A2vWkfyfBSTxAKI+If9KhqcIZVVsYSoMktPiqM4XYqloZ62TaZgvgdd/gQ+Kcn0WMBO7pfGnV3TixJ8nId7uURDbM1p6qt1SRN0VNzXn38TK1TQuj0D4cUS/xrIO+Y6qP6akiG6RVA0ty4Rx/pi/5TIWOk3G4Mgfli/6X2ndE3jFVMK+JwEtfxHZAZYaHJ0c1wZoaFUtaKjVdvH7sOlyuuPsXYH5KUoN5j9zzxR8p+YB8iqGl4KMmW0F4PcLPKv8EoHjU4GjR6I0dfGB4BhE/m2YW9TclDbDCtr9nHVcOEImgefjuAdw70pYeYrVpKVO7MBKqbl2HjqoHhkU5QneShwuEP+kVLVAWJGwd73TRobvMgXwu4upzLEer5RweuhtV8526zXJKZGUp3pz0YDEc9VwfvuxT42ayGODi8JfP9s46Q=
distributions: sdist bdist_wheel
on:
tags: true
condition: $TOXENV = py36