forked from pythongssapi/python-gssapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
131 lines (107 loc) · 4.08 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
sudo: required
# not necessary, but less confusing if defined
language: python
services:
- docker
# we do everything in docker for non MacOS, MacOS setup is in .travis/build.sh
install: skip
before_install: skip
stages:
- verify
- test
- name: deploy latest docs
if: (branch = master OR branch =~ ^infra/$) AND type = push
- name: deploy
if: tag is PRESENT
script:
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo sed -i '1i 127.0.0.1 test.box' /etc/hosts; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo hostname test.box; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then source ./.travis/lib-util.sh; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then util::docker-run $DISTRO ./.travis/build.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./.travis/build.sh; fi
jobs:
include:
- stage: verify
env: DISTRO=fedora:latest PYTHON="2"
script:
- source ./.travis/lib-util.sh
- util::docker-run $DISTRO ./.travis/verify.sh
- stage: verify
env: DISTRO=fedora:latest PYTHON="3"
script:
- source ./.travis/lib-util.sh
- util::docker-run $DISTRO ./.travis/verify.sh
# need to explictly define each builder for test due to different os types
- stage: test
env: DISTRO=debian:stable PYTHON="2"
- stage: test
env: DISTRO=debian:stable PYTHON="3" # 3.4, not 3.5
- stage: test
env: DISTRO=debian:stable PYTHON="3" KRB5_VER="heimdal"
- stage: test
env: DISTRO=centos:7 PYTHON="2" # el7 doesn't do python3 modules
- stage: test
env: DISTRO=fedora:latest PYTHON="3"
- stage: test
env: DISTRO=fedora:latest PYTHON="2"
- stage: test
env: PYTHON="2" KRB5_VER="heimdal" PYENV="2.7.14"
os: osx
osx_image: xcode9.2
language: generic # causes issues with pyenv installer when set to python
- stage: test
env: PYTHON="3" KRB5_VER="heimdal" PYENV="3.6.3"
os: osx
osx_image: xcode9.2
language: generic # causes issues with pyenv installer when set to python
- stage: deploy latest docs
script: skip
env:
- DISTRO=fedora:latest
- PYTHON="3"
- secure: L5SpEj5+no20PWwC9Y/XNhAfmUvYiuykwSMa/YyqvUuBjdizzpZcHr7Ego5nMdM1TniTxj4pSTM+GbM0FHCzNmAINSRh9g/D3hheRqlRBacqR0XwC9ZZRvkKvtzwnLh4vYWiauq4AoDeR5U6tkEcay6LjE57iMQcLjcKYBc+Eos=
before_deploy:
- source ./.travis/lib-util.sh
- util::docker-run $DISTRO ./.travis/before-docs-deploy.sh
deploy:
- provider: script
script: .travis/docs-deploy.sh travis_docs_build/html latest pythongssapi/python-gssapi
skip_cleanup: true
on:
all_branches: true
- stage: deploy
script: skip
env:
- DISTRO=fedora:latest
- PYTHON="3"
- secure: L5SpEj5+no20PWwC9Y/XNhAfmUvYiuykwSMa/YyqvUuBjdizzpZcHr7Ego5nMdM1TniTxj4pSTM+GbM0FHCzNmAINSRh9g/D3hheRqlRBacqR0XwC9ZZRvkKvtzwnLh4vYWiauq4AoDeR5U6tkEcay6LjE57iMQcLjcKYBc+Eos=
before_deploy:
- source ./.travis/lib-util.sh
- util::docker-run $DISTRO ./.travis/before-deploy.sh
- ls -alR `pwd`
deploy:
- provider: releases
api_key:
secure: fAaSSSjd/nUrIpINBjAT590pGF2nGq3I8ee6aGq6IAFpXoa/9eeN5eyOrE4MYucWCwYcH28c7510n35vuZQQor+UZIDo6l0K5M64/NZE1cZ43zOMjw3yHlrsJG+ohPS7YvjqD8GaFlLhF6ZvWvrPmWeijvs8qAT1eL7QoEG0xBk=
file_glob: true
file:
- tag_build/*
skip_cleanup: true
on:
all_branches: true
- provider: pypi
user:
secure: "jUAMucBq+9xH8x9u0I0LOwrs3Zb++KN7FwIIwz2CyAt/+TyyrJzeGJaV+dTiJ1OqcUIFqQG6jopzpnAe4biL1O68PEwz9BphKetFLpLHiFNm/n67LYno6NFonWmxndIy99pOP6NZu29nzSNeYq/KgEHo/5OkqEGOxk//lh7X/OY="
password:
secure: "ZqywwnR+G5VeM2sStwfLeutOvqbULHtnStjrdYc8WcC/FBVwmH/W48fTlvxrnswmfKx7Eljv0nN4VcBpoFf1tvz4O2oK/tCRpf0N8SvpT0jBx8bLGUxJ1/3Po6rFgBRWgSb/mzKHPKI6fLlQNcNg8lrd9e1j/zgbVRSwNeMUOR8="
skip_cleanup: true
docs_dir: travis_docs_build/html
on:
all_branches: true
# NB(directxman12): this is a hack. Check ./.travis/before-deploy.sh for an explanation.
distributions: "check"
- provider: script
script: .travis/docs-deploy.sh travis_docs_build/html stable pythongssapi/python-gssapi
skip_cleanup: true
on:
all_branches: true