Adjust to the fact that on OSX pip is now spelled pip2.7
@@ -26,9 +26,11 @@ before_install:
# Install Yarn as per https://yarnpkg.com/lang/en/docs/install-ci/#travis-tab.
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.2.1
- export PATH=$HOME/.yarn/bin:$PATH
+ - export PIP=pip
+ # On OSX, the place pip installs user commands to is not on the $PATH and also pip is called pip2.7
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:$HOME/Library/Python/2.7/bin; export PIP=pip2.7; fi
# Install the AWS CLI so that we can publish the resulting release (if applicable) at the end.
- - pip install --upgrade --user awscli
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:$HOME/Library/Python/2.7/bin; fi
+ - $PIP install --upgrade --user awscli
cache:
yarn: true
install:
