diff options
author | sharkdp <davidpeter@web.de> | 2018-08-18 21:51:19 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-08-19 09:50:24 +0200 |
commit | 76be0d3933bc3f86a8537f2319e21a74d6b5a354 (patch) | |
tree | f1dba583d3d0bcb20a833773f7723f2d426a4a25 /.travis.yml | |
parent | e5b8c4471a609991f82183ed6648ffa2b20b130c (diff) |
Add arm as a compile target
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml index ff3c1e07..28478f22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,12 @@ matrix: - os: osx rust: stable env: TARGET=x86_64-apple-darwin + - os: linux + rust: stable + env: + - TARGET=arm-unknown-linux-gnueabihf + - CC_arm_unknown_linux_gnueabihf=/usr/bin/arm-linux-gnueabihf-gcc-4.8 + - CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc-4.8 # Minimum Rust supported channel. - os: linux @@ -39,15 +45,10 @@ matrix: - cargo install --debug --force rustfmt-nightly script: cargo fmt -- --check -addons: - apt: - packages: - # needed for i686-unknown-linux-gnu target - - gcc-multilib - # needed for musl targets - - musl-tools - # needed to build deb packages - - fakeroot +sudo: required + +before_install: + - ci/before_install.bash env: global: @@ -62,11 +63,7 @@ install: - if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi script: - # Incorporate TARGET env var to the build and test process - - cargo build --target $TARGET --verbose - - cargo test --target $TARGET --verbose - # Run 'bat' on its own source code and the README - - cargo run --target $TARGET -- src/main.rs README.md --paging=never + - ci/script.bash before_deploy: - bash ci/before_deploy.bash |