travis: Use wgetpaste to post disassemblies to gist

This commit is contained in:
Matt Ickstadt 2016-08-21 16:51:50 -05:00 committed by Jorge Aparicio
parent 9307ee99b5
commit 27cbb963a3
2 changed files with 18 additions and 1 deletions

View File

@ -42,6 +42,17 @@ install_xargo() {
fi
}
install_wgetpaste() {
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew install wgetpaste
else
curl -O http://wgetpaste.zlin.dk/wgetpaste-2.28.tar.bz2
tar -xvf wgetpaste-2.28.tar.bz2
sudo mv ./wgetpaste-2.28/wgetpaste /usr/bin
rm -r wgetpaste-2.28*
fi
}
main() {
if [[ $TRAVIS_OS_NAME == "osx" || ${IN_DOCKER_CONTAINER:-n} == "y" ]]; then
install_qemu
@ -49,6 +60,7 @@ main() {
install_rust
add_rustup_target
install_xargo
install_wgetpaste
fi
}

View File

@ -2,6 +2,11 @@ set -ex
. $(dirname $0)/env.sh
gist() {
wgetpaste -s gists -d "'$1' from commit '$TRAVIS_COMMIT' on branch '$TRAVIS_BRANCH'"
echo "Disassembly available at the above URL."
}
build() {
${CARGO:-cargo} build --target $TARGET
${CARGO:-cargo} build --target $TARGET --release
@ -11,7 +16,7 @@ inspect() {
$PREFIX$NM -g --defined-only target/**/debug/*.rlib
set +e
$PREFIX$OBJDUMP -Cd target/**/release/*.rlib
$PREFIX$OBJDUMP -Cd target/**/release/*.rlib | gist "$TARGET/rustc-builtins.rlib"
set -e
# Check presence of weak symbols