Skip to content

Commit 45d203d

Browse files
committed
travis: Tweak artifact uploads
* Don't upload `*.wixpdb` files by accident * Don't upload `doc` dir by accident * Fix level of indirection on Travis
1 parent c81c1d6 commit 45d203d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ cache:
108108

109109
before_deploy:
110110
- mkdir -p deploy/$TRAVIS_COMMIT
111+
- rm -rf build/dist/doc
111112
- >
112113
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
113-
cp -r build/dist deploy/$TRAVIS_COMMIT;
114+
cp -r build/dist/* deploy/$TRAVIS_COMMIT;
114115
else
115-
cp -r obj/build/dist deploy/$TRAVIS_COMMIT;
116+
cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
116117
fi
117118
118119
deploy:

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ branches:
137137
before_deploy:
138138
- ps: |
139139
New-Item -Path deploy -ItemType directory
140+
Remove-Item -Recurse -Force build\dist\doc
140141
Get-ChildItem -Path build\dist | Move-Item -Destination deploy
141142
Get-ChildItem -Path deploy | Foreach-Object {
142143
Push-AppveyorArtifact $_.FullName -FileName ${env:APPVEYOR_REPO_COMMIT}/$_

src/bootstrap/dist.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
827827
cmd.arg("-nologo")
828828
.arg("-ext").arg("WixUIExtension")
829829
.arg("-ext").arg("WixUtilExtension")
830-
.arg("-out").arg(distdir(build).join(filename))
830+
.arg("-out").arg(exe.join(&filename))
831831
.arg("rust.wixobj")
832832
.arg("ui.wixobj")
833833
.arg("rustwelcomedlg.wixobj")
@@ -844,6 +844,8 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
844844
cmd.arg("-sice:ICE57");
845845

846846
build.run(&mut cmd);
847+
848+
t!(fs::rename(exe.join(&filename), distdir(build).join(&filename)));
847849
}
848850
}
849851

0 commit comments

Comments
 (0)