This repository was archived by the owner on Mar 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +93
-0
lines changed Expand file tree Collapse file tree 3 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ref: https://docs.travis-ci.com/user/languages/python
2
+ language : python
3
+
4
+ # Keep this matrix in sync with main repo's test matrix
5
+ matrix :
6
+ include :
7
+ - python : 2.7
8
+ env : TOXENV=py27
9
+ - python : 2.7
10
+ env : TOXENV=py27-functional
11
+ - python : 2.7
12
+ env : TOXENV=update-pep8
13
+ - python : 2.7
14
+ env : TOXENV=docs
15
+ - python : 2.7
16
+ env : TOXENV=coverage,codecov
17
+ - python : 3.4
18
+ env : TOXENV=py34
19
+ - python : 3.5
20
+ env : TOXENV=py35
21
+ - python : 3.5
22
+ env : TOXENV=py35-functional
23
+ - python : 3.6
24
+ env : TOXENV=py36
25
+ - python : 3.6
26
+ env : TOXENV=py36-functional
27
+
28
+ install :
29
+ - pip install tox
30
+
31
+ script :
32
+ - tox
33
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Copyright 2017 The Kubernetes Authors.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Script to fetch latest swagger spec.
18
+ # Puts the updated spec at api/swagger-spec/
19
+
20
+ set -o errexit
21
+ set -o nounset
22
+ set -o pipefail
23
+
24
+ RUNNING_DIR=$( pwd)
25
+ TMP_DIR=$( mktemp -d)
26
+
27
+ function cleanup()
28
+ {
29
+ cd " ${RUNNING_DIR} "
30
+ # rm -rf "${TMP_DIR}"
31
+ }
32
+ trap cleanup EXIT SIGINT
33
+
34
+
35
+ SCRIPT_ROOT=$( dirname " ${BASH_SOURCE} " )
36
+ pushd " ${SCRIPT_ROOT} " > /dev/null
37
+ SCRIPT_ROOT=` pwd`
38
+ popd > /dev/null
39
+
40
+ cd " ${TMP_DIR} "
41
+ git clone https://github.com/kubernetes-incubator/client-python.git
42
+ cd client-python
43
+ cp -r " ${SCRIPT_ROOT} /." kubernetes/base
44
+ pip install -r requirements.txt
45
+ pip install -r test-requirements.txt
46
+
47
+ # Run the user-provided command.
48
+ " ${@ } "
49
+
Original file line number Diff line number Diff line change
1
+ [tox]
2
+ skipsdist = True
3
+ envlist = py27, py34, py35, py36
4
+
5
+ [testenv]
6
+ passenv = TOXENV CI TRAVIS TRAVIS_*
7
+ commands =
8
+ python -V
9
+ pip install nose
10
+ ./run_tox.sh nosetests []
11
+
You can’t perform that action at this time.
0 commit comments