@@ -6,15 +6,7 @@ language: python
6
6
services :
7
7
- docker
8
8
9
- env :
10
- - DISTRO=debian:stable PYTHON="2"
11
- - DISTRO=debian:stable PYTHON="3" # 3.4, not 3.5
12
- - DISTRO=debian:stable PYTHON="3" KRB5_VER="heimdal"
13
- - DISTRO=centos:7 PYTHON="2" # el7 doesn't do python3 modules
14
- - DISTRO=fedora:rawhide PYTHON="3"
15
- - DISTRO=fedora:rawhide PYTHON="2"
16
-
17
- # we do everything in docker
9
+ # we do everything in docker for non MacOS, MacOS setup is in .travis/build.sh
18
10
install : skip
19
11
before_install : skip
20
12
@@ -27,10 +19,11 @@ stages:
27
19
if : tag is PRESENT
28
20
29
21
script :
30
- - sudo sed -i '1i 127.0.0.1 test.box' /etc/hosts
31
- - sudo hostname test.box
32
- - source ./.travis/lib-util.sh
33
- - util::docker-run $DISTRO ./.travis/build.sh
22
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo sed -i '1i 127.0.0.1 test.box' /etc/hosts; fi
23
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo hostname test.box; fi
24
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then source ./.travis/lib-util.sh; fi
25
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then util::docker-run $DISTRO ./.travis/build.sh; fi
26
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./.travis/build.sh; fi
34
27
35
28
jobs :
36
29
include :
46
39
- source ./.travis/lib-util.sh
47
40
- util::docker-run $DISTRO ./.travis/verify.sh
48
41
42
+
43
+ # need to explictly define each builder for test due to different os types
44
+ - stage : test
45
+ env : DISTRO=debian:stable PYTHON="2"
46
+
47
+ - stage : test
48
+ env : DISTRO=debian:stable PYTHON="3" # 3.4, not 3.5
49
+
50
+ - stage : test
51
+ env : DISTRO=debian:stable PYTHON="3" KRB5_VER="heimdal"
52
+
53
+ - stage : test
54
+ env : DISTRO=centos:7 PYTHON="2" # el7 doesn't do python3 modules
55
+
56
+ - stage : test
57
+ env : DISTRO=fedora:rawhide PYTHON="3"
58
+
59
+ - stage : test
60
+ env : DISTRO=fedora:rawhide PYTHON="2"
61
+
62
+ - stage : test
63
+ env : PYTHON="2" KRB5_VER="heimdal" PYENV="2.7.14"
64
+ os : osx
65
+ osx_image : xcode9.2
66
+ language : generic # causes issues with pyenv installer when set to python
67
+
68
+ - stage : test
69
+ env : PYTHON="3" KRB5_VER="heimdal" PYENV="3.6.3"
70
+ os : osx
71
+ osx_image : xcode9.2
72
+ language : generic # causes issues with pyenv installer when set to python
73
+
74
+
49
75
- stage : deploy latest docs
50
76
script : skip
51
77
env :
@@ -97,10 +123,9 @@ jobs:
97
123
all_branches : true
98
124
# NB(directxman12): this is a hack. Check ./.travis/before-deploy.sh for an explanation.
99
125
distributions : " check"
100
-
126
+
101
127
- provider : script
102
128
script : .travis/docs-deploy.sh travis_docs_build/html stable pythongssapi/python-gssapi
103
129
skip_cleanup : true
104
130
on :
105
131
all_branches : true
106
-
0 commit comments