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

Skip to content

Commit df1c181

Browse files
committed
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 20315e1 commit df1c181

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
@@ -9,6 +9,9 @@ cache:
99
- $HOME/.cache/matplotlib
1010

1111
addons:
12+
artifacts:
13+
paths:
14+
- result_images.tar.bz2
1215
apt:
1316
packages:
1417
- inkscape
@@ -34,7 +37,7 @@ addons:
3437
env:
3538
global:
3639
- ARTIFACTS_AWS_REGION=us-east-1
37-
- ARTIFACTS_S3_BUCKET=matplotlib-test-results
40+
- ARTIFACTS_BUCKET=matplotlib-test-results
3841
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
3942
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
4043
- secure: "dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU="
@@ -191,11 +194,8 @@ script:
191194
after_failure:
192195
- |
193196
if [[ $BUILD_DOCS == false && $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
194-
gem install travis-artifacts
195-
cd $TRAVIS_BUILD_DIR/../tmp_test_dir
196197
tar cjf result_images.tar.bz2 result_images
197-
travis-artifacts upload --path result_images.tar.bz2
198-
echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
198+
echo 'See "Uploading Artifacts" near the end of the log for the download URL'
199199
else
200200
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."
201201
fi

0 commit comments

Comments
 (0)