Skip to content

Commit 27cbb96

Browse files
matticoJorge Aparicio
authored andcommitted
travis: Use wgetpaste to post disassemblies to gist
1 parent 9307ee9 commit 27cbb96

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

ci/install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,25 @@ install_xargo() {
4242
fi
4343
}
4444

45+
install_wgetpaste() {
46+
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
47+
brew install wgetpaste
48+
else
49+
curl -O http://wgetpaste.zlin.dk/wgetpaste-2.28.tar.bz2
50+
tar -xvf wgetpaste-2.28.tar.bz2
51+
sudo mv ./wgetpaste-2.28/wgetpaste /usr/bin
52+
rm -r wgetpaste-2.28*
53+
fi
54+
}
55+
4556
main() {
4657
if [[ $TRAVIS_OS_NAME == "osx" || ${IN_DOCKER_CONTAINER:-n} == "y" ]]; then
4758
install_qemu
4859
install_binutils
4960
install_rust
5061
add_rustup_target
5162
install_xargo
63+
install_wgetpaste
5264
fi
5365
}
5466

ci/script.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ set -ex
22

33
. $(dirname $0)/env.sh
44

5+
gist() {
6+
wgetpaste -s gists -d "'$1' from commit '$TRAVIS_COMMIT' on branch '$TRAVIS_BRANCH'"
7+
echo "Disassembly available at the above URL."
8+
}
9+
510
build() {
611
${CARGO:-cargo} build --target $TARGET
712
${CARGO:-cargo} build --target $TARGET --release
@@ -11,7 +16,7 @@ inspect() {
1116
$PREFIX$NM -g --defined-only target/**/debug/*.rlib
1217

1318
set +e
14-
$PREFIX$OBJDUMP -Cd target/**/release/*.rlib
19+
$PREFIX$OBJDUMP -Cd target/**/release/*.rlib | gist "$TARGET/rustc-builtins.rlib"
1520
set -e
1621

1722
# Check presence of weak symbols

0 commit comments

Comments
 (0)