File tree Expand file tree Collapse file tree 4 files changed +30
-37
lines changed Expand file tree Collapse file tree 4 files changed +30
-37
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,22 @@ python:
10
10
- " 2.7"
11
11
- " 2.6"
12
12
13
+ before_script :
14
+ - source helpers.sh
15
+
13
16
install :
14
- - pip install flake8
17
+ - pip install flake8
15
18
16
19
script :
17
- # Simple test runs
18
- - ./local-install.sh
19
- - ./curl-install.sh
20
+ # Test install
21
+ - cat_get_pip "$TRAVIS_PYTHON_VERSION" "$SCRIPT_SRC" | python -
20
22
21
- # Static analysis
22
- - pip install pyflakes pycodestyle
23
- - flake8 .
23
+ # Static analysis
24
+ - pip install pyflakes pycodestyle
25
+ - flake8 .
24
26
25
27
matrix :
26
28
fast_finish : true
29
+ global :
30
+ - SCRIPT_SRC=local
31
+ - SCRIPT_SRC=remote
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ function cat_get_pip() {
2
+ local version=" $1 "
3
+ local path=" get-pip.py"
4
+ [[ -n " $version " ]] && path=" $version /$path "
5
+ local src=" $2 "
6
+ local cmd=cat
7
+ if [[ " $src " == " remote" ]]
8
+ then
9
+ path=" https://bootstrap.pypa.io/$path "
10
+ cmd=' wget -O - '
11
+ elif [[ " $src " != " local" ]]
12
+ then
13
+ >&2 echo Wrong source argument: $src
14
+ exit 1
15
+ fi
16
+
17
+ $cmd $path
18
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments