Skip to content

Commit

Permalink
Auto merge of #39368 - alexcrichton:fix-upload-dirs, r=aturon
Browse files Browse the repository at this point in the history
travis: Tweak artifact uploads

* Don't upload `*.wixpdb` files by accident
* Don't upload `doc` dir by accident
* Fix level of indirection on Travis
  • Loading branch information
bors committed Jan 30, 2017
2 parents 55f9712 + 45d203d commit 8921707
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -108,11 +108,12 @@ cache:

before_deploy:
- mkdir -p deploy/$TRAVIS_COMMIT
- rm -rf build/dist/doc
- >
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
cp -r build/dist deploy/$TRAVIS_COMMIT;
cp -r build/dist/* deploy/$TRAVIS_COMMIT;
else
cp -r obj/build/dist deploy/$TRAVIS_COMMIT;
cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
fi
deploy:
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Expand Up @@ -137,6 +137,7 @@ branches:
before_deploy:
- ps: |
New-Item -Path deploy -ItemType directory
Remove-Item -Recurse -Force build\dist\doc
Get-ChildItem -Path build\dist | Move-Item -Destination deploy
Get-ChildItem -Path deploy | Foreach-Object {
Push-AppveyorArtifact $_.FullName -FileName ${env:APPVEYOR_REPO_COMMIT}/$_
Expand Down
4 changes: 3 additions & 1 deletion src/bootstrap/dist.rs
Expand Up @@ -827,7 +827,7 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
cmd.arg("-nologo")
.arg("-ext").arg("WixUIExtension")
.arg("-ext").arg("WixUtilExtension")
.arg("-out").arg(distdir(build).join(filename))
.arg("-out").arg(exe.join(&filename))
.arg("rust.wixobj")
.arg("ui.wixobj")
.arg("rustwelcomedlg.wixobj")
Expand All @@ -844,6 +844,8 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
cmd.arg("-sice:ICE57");

build.run(&mut cmd);

t!(fs::rename(exe.join(&filename), distdir(build).join(&filename)));
}
}

Expand Down

0 comments on commit 8921707

Please sign in to comment.