Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 8a8898c

Browse files
committed
Travis CI: Fix Hunter cache upload
On Linux we have to upgrade requests Python package.
1 parent e2ae80d commit 8a8898c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,13 @@ after_success:
126126
- make coverage.data
127127
# Get CodeCov script (fixed commit) and upload coverage report.
128128
- bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/d8016a07d67d813f98afdbaf98dc4f46d9806118/codecov) -X fix -f coverage.data
129-
after_script:
129+
after_script: |
130130
# Hunter: upload cache to the cache server.
131-
- if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" ]]; then pip install requests && make -C $TRAVIS_BUILD_DIR/build hunter_upload_cache; fi
131+
if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" ]]; then
132+
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo pip install --upgrade requests pyopenssl; fi
133+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install requests; fi
134+
make -C $TRAVIS_BUILD_DIR/build hunter_upload_cache
135+
fi
132136
deploy:
133137
# This is the deploy target for the native build (Linux and macOS)
134138
# which generates ZIPs per commit. We are in agreement that

0 commit comments

Comments
 (0)