Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
- rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- gem install gist
- rustc -Vv
- cargo -V

Expand All @@ -17,8 +18,12 @@ test_script:
- cargo build --release
- cargo test
- cargo test --release
- CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- dumpbin /disasm target/release/librustc_builtins.rlib || exit 0

on_success:
- cmd: |
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
dumpbin /disasm target/release/librustc_builtins.rlib |
gist -d "'%TARGET%/rustc-builtins.rlib' from commit '%APPVEYOR_REPO_COMMIT%' on branch '%APPVEYOR_REPO_branch%'"

branches:
only:
Expand Down
12 changes: 12 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,25 @@ 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
install_binutils
install_rust
add_rustup_target
install_xargo
install_wgetpaste
fi
}

Expand Down
7 changes: 6 additions & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down