]> granicus.if.org Git - curl/commitdiff
travis: use pip2 instead of pip
authorJay Satiro <raysatiro@yahoo.com>
Fri, 1 Dec 2017 08:03:26 +0000 (03:03 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 2 Dec 2017 10:53:11 +0000 (11:53 +0100)
.. since now mac osx image expects pip2 or pip3, and doesn't know pip:

0.01s$ pip install --user cpp-coveralls
/Users/travis/.travis/job_stages: line 57: pip: command not found

Ref: https://github.com/travis-ci/travis-ci/issues/8829

Closes https://github.com/curl/curl/pull/2133

.travis.yml

index 7e2be4a59a133aed287a3fd6a70c7142a329960e..d2924556ae5a9d842a0fa97848ea3ab65ae00dee 100644 (file)
@@ -91,7 +91,7 @@ matrix:
           env: T=fuzzer
 
 install:
-  - pip install --user cpp-coveralls
+  - if [ "$T" = "coverage" ]; then pip2 install --user cpp-coveralls; fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update > /dev/null; fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew reinstall libtool > /dev/null; fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install rtmpdump libssh2 c-ares libmetalink libressl nghttp2 libmetalink; fi