travis: Stop uploading sha256 files

We'll generate these later in the build process and otherwise they could just
cause spurious failures with files overwriting one another.
This commit is contained in:
Alex Crichton 2017-01-18 16:10:05 -08:00
parent c07a6ae77c
commit c457b819d7
2 changed files with 3 additions and 8 deletions

View File

@ -119,11 +119,9 @@ before_deploy:
- mkdir -p deploy/$TRAVIS_COMMIT - mkdir -p deploy/$TRAVIS_COMMIT
- > - >
if [ "$TRAVIS_OS_NAME" == "osx" ]; then if [ "$TRAVIS_OS_NAME" == "osx" ]; then
cp build/dist/*.tar.gz deploy/$TRAVIS_COMMIT && cp build/dist/*.tar.gz deploy/$TRAVIS_COMMIT;
find "deploy/$TRAVIS_COMMIT" -maxdepth 1 -type f -exec sh -c 'shasum -a 256 -b "{}" > "{}.sha256"' \;;
else else
cp obj/build/dist/*.tar.gz deploy/$TRAVIS_COMMIT && cp obj/build/dist/*.tar.gz deploy/$TRAVIS_COMMIT;
find "deploy/$TRAVIS_COMMIT" -maxdepth 1 -type f -exec sh -c 'sha256sum -b "{}" > "{}.sha256"' \;;
fi fi
deploy: deploy:

View File

@ -131,9 +131,6 @@ before_deploy:
- ps: | - ps: |
New-Item -Path deploy -ItemType directory New-Item -Path deploy -ItemType directory
Get-ChildItem -Path build\dist -Filter '*.tar.gz' | Move-Item -Destination deploy Get-ChildItem -Path build\dist -Filter '*.tar.gz' | Move-Item -Destination deploy
Get-FileHash .\deploy\* | ForEach-Object {
[io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")
}
Get-ChildItem -Path deploy | Foreach-Object { Get-ChildItem -Path deploy | Foreach-Object {
Push-AppveyorArtifact $_.FullName -FileName ${env:APPVEYOR_REPO_COMMIT}/$_ Push-AppveyorArtifact $_.FullName -FileName ${env:APPVEYOR_REPO_COMMIT}/$_
} }
@ -147,7 +144,7 @@ deploy:
bucket: rust-lang-ci bucket: rust-lang-ci
set_public: true set_public: true
region: us-east-1 region: us-east-1
artifact: /.*\.(tar.gz|sha256)/ artifact: /.*\.tar.gz/
folder: rustc-builds folder: rustc-builds
on: on:
branch: auto branch: auto