Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 423cf9b

Browse files
jkseppantacaswell
authored andcommitted
Fix artifact upload
"gem install travis-artifacts" no longer works, now you have to use the artifacts addon and set some variables. The encrypted variables may need to be updated too, the variable names should be ARTIFACTS_KEY and ARTIFACTS_SECRET. See documentation at https://docs.travis-ci.com/user/uploading-artifacts/
1 parent 8bc197a commit 423cf9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ cache:
1010
- $HOME/.cache/matplotlib
1111

1212
addons:
13+
artifacts:
14+
paths:
15+
- result_images.tar.bz2
1316
apt:
1417
packages:
1518
- inkscape
@@ -32,7 +35,7 @@ addons:
3235
env:
3336
global:
3437
- ARTIFACTS_AWS_REGION=us-east-1
35-
- ARTIFACTS_S3_BUCKET=matplotlib-test-results
38+
- ARTIFACTS_BUCKET=matplotlib-test-results
3639
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
3740
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
3841
- secure: "dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU="
@@ -162,11 +165,8 @@ before_cache:
162165
after_failure:
163166
- |
164167
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
165-
gem install travis-artifacts
166-
cd $TRAVIS_BUILD_DIR/../tmp_test_dir
167168
tar cjf result_images.tar.bz2 result_images
168-
travis-artifacts upload --path result_images.tar.bz2
169-
echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
169+
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
170170
else
171171
echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details."
172172
fi

0 commit comments

Comments
 (0)