Skip to content

Commit

Permalink
Arm64 tests with qemu expect bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
afinch7 committed Mar 7, 2019
1 parent cffa6c9 commit 23bd502
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Expand Up @@ -122,12 +122,16 @@ jobs:
- export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="/usr/bin/aarch64-linux-gnu-gcc-5"
- export CC_aarch64_unknown_linux_gnu="/usr/bin/aarch64-linux-gnu-gcc-5"
- ./tools/setup.py
- cargo build -vv --target=aarch64-unknown-linux-gnu --release --locked
- cargo build -vv --target=aarch64-unknown-linux-gnu --release --tests --locked
- sudo apt -yq install qemu qemu-user-static binfmt-support debootstrap
- sudo qemu-debootstrap --arch=arm64 --no-check-gpg stretch $HOME/debian-arm64 http://deb.debian.org/debian
- sudo chroot $HOME/debian-arm64 bash -c "$(find $CARGO_TARGET_DIR/target/aarch64-unknown-linux-gnu/release -maxdepth 1 -type f -executable -regextype sed -regex '.*/[a-z_]*-[0-9a-f]*'))"
- sudo cp $CARGO_TARGET_DIR $HOME/debian-arm64/$CARGO_TARGET_DIR
- sudo chroot $HOME/debian-arm64 bash -c ""
- sudo chroot $HOME/debian-arm64 bash -c "mount proc /proc -t proc"
- sudo mkdir -p $HOME/debian-arm64/$HOME/denoland/deno
- sudo cp -r ./ $HOME/debian-arm64/$HOME/denoland/deno
- sudo cp -r $CARGO_TARGET_DIR $HOME/debian-arm64/$HOME/denoland/deno/target
- sudo mv $(find $HOME/debian-arm64/$CARGO_TARGET_DIR/target/aarch64-unknown-linux-gnu/release -maxdepth 1 -type f -executable -regextype sed -regex '.*/[a-z_]*-[0-9a-f]*')) ../debian-arm64/$CARGO_TARGET_DIR/target/aarch64-unknown-linux-gnu/release/test_cc
- sudo chroot $HOME/debian-arm64 bash -c "DENO_BUILD_MODE=release $HOME/denoland/deno/tools/test.py target/aarch64-unknown-linux-gnu/release"

- name: "cargo release linux x86_64"
os: linux
Expand Down

0 comments on commit 23bd502

Please sign in to comment.